Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4558 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86193 invoked by uid 1010); 23 Sep 2003 17:44:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 86157 invoked from network); 23 Sep 2003 17:44:08 -0000 Received: from unknown (HELO asuka.nerv) (24.112.18.98) by pb1.pair.com with SMTP; 23 Sep 2003 17:44:08 -0000 Received: (qmail 8755 invoked from network); 23 Sep 2003 17:52:59 -0000 Received: from rei.nerv (HELO dummy.com) (rei@192.168.1.1) by asuka.nerv with SMTP; 23 Sep 2003 17:52:59 -0000 Reply-To: ilia@prohost.org To: "Wez Furlong" , , Date: Tue, 23 Sep 2003 13:45:57 -0400 User-Agent: KMail/1.5.3 References: <1064324106.4qf5jx9xw2yo@217.255.147.155> <20030923154431.28056.qmail@pb1.pair.com> <05a601c381f3$f36e8b50$0702a8c0@TITAN> In-Reply-To: <05a601c381f3$f36e8b50$0702a8c0@TITAN> Organization: Prohost.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200309231345.58072.ilia@prohost.org> Subject: Re: [PHP-DEV] Re: Fwd: Re: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed) From: ilia@prohost.org (Ilia Alshanetsky) In my opinion the change is fine, given the current state of affairs a transitional release between 4.3 & 5.0 does not seem likely. Therefor it would only seem logical to give people a fair warning (E_NOTICE) that the (wrong) behavior they are relying upon is not going work/last forever. Otherwise, without a word of warning working code will suddenly become broken code once they upgrade. Most people have their error reporting set to E_ALL ^ E_NOTICE (do not display notices) so it won't affect them anyway. Even then, the behavior itself implies a failure in some code, since an non-array value is passed to a function expecting an array. I venture it would help a number of people find errors in their code that before were nigh impossible to find and/or track down. And yes PHP is typeless, but all of the code using new argument parsing functions will most definitely reject strings passed to functions expecting arrays and vice versa. I see this situations as not being any different. Ilia