Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38521 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20567 invoked from network); 22 Jun 2008 21:33:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2008 21:33:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:53870] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/85-23032-325CE584 for ; Sun, 22 Jun 2008 17:33:24 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 390801EBC013; Sun, 22 Jun 2008 21:35:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qRVl-CBBMAjR; Sun, 22 Jun 2008 23:35:38 +0200 (CEST) Received: from [192.168.0.151] (77-57-23-243.dclient.hispeed.ch [77.57.23.243]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id 87C5D414400E; Sun, 22 Jun 2008 23:35:37 +0200 (CEST) Cc: 'PHP Internals' Message-ID: <09E0DEA2-FDA6-4AD2-A4D0-1441A6053779@pooteeweet.org> To: Stanislav Malyshev In-Reply-To: <485EC24C.4030607@zend.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v924) Date: Sun, 22 Jun 2008 23:32:39 +0200 References: <485AE658.3050204@zend.com> <0BA4A4FD-7FA2-49C0-B7B9-06CDDCF2EFBF@pooteeweet.org> <485EC24C.4030607@zend.com> X-Mailer: Apple Mail (2.924) Subject: Re: [PHP-DEV] cleaning up the functions - any volunteers? From: mls@pooteeweet.org (Lukas Kahwe Smith) On 22.06.2008, at 23:21, Stanislav Malyshev wrote: > Hi! > >> is this in any way related to the parameter parsing API change that >> caused the BC break in array_merge() back in PHP 5.0? If so then I >> would > > I don't really remember about array_merge in detail, but this change > shouldn't (I know, famous last words :) create any BC break unless > you rely on weird stuff like array-to-string implicit conversion > (which you really really shouldn't touch with a ten foot pole anyway). The break in array_merge() was that previously it would cast the parameters to an array. As such a popular use case before the parameter parsing change was the following: $foo = null; $bar = array_merge($foo, $array); Since 5.0 this would lead to $bar being false and not $array. While it could be argued that the user should do an explicit cast himself, it was still a clear BC issue that caused a lot of issues for developers. regards, Lukas Kahwe Smith mls@pooteeweet.org