Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4598 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28278 invoked by uid 1010); 27 Sep 2003 08:37:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 28254 invoked from network); 27 Sep 2003 08:37:52 -0000 Received: from unknown (HELO ammma.de) (213.83.39.131) by pb1.pair.com with SMTP; 27 Sep 2003 08:37:52 -0000 Received: from ammma.net (ammma.net [62.225.101.66]) by ammma.de (8.11.6/8.11.6/AMMMa AG) with ESMTP id h8R8b8q03693 for ; Sat, 27 Sep 2003 10:37:08 +0200 Received: from neo.wg.de (jan.ammma.mil [192.168.100.11]) by ammma.net (8.9.3p2/8.9.3/AMMMa AG) with ESMTP id KAA02155 for ; Sat, 27 Sep 2003 10:37:49 +0200 Received: by neo.wg.de (Postfix, from userid 30) id 097389A1EB; Sat, 27 Sep 2003 10:37:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by localhost (Horde) with HTTP for ; Sat, 27 Sep 2003 10:37:52 +0200 Message-ID: <1064651872.3jjapw2b75vk@localhost> X-Priority: 3 (Normal) Date: Sat, 27 Sep 2003 10:37:52 +0200 To: internals@lists.php.net References: <1064324106.4qf5jx9xw2yo@217.255.147.155> <20030923154431.28056.qmail@pb1.pair.com> <05a601c381f3$f36e8b50$0702a8c0@TITAN> <200309231345.58072.ilia@prohost.org> <1064349699.7zp9rs5gnic@localhost> <20030923210103.70589.qmail@pb1.pair.com> <1064351733.2gqn7u1ekkqo@localhost> In-Reply-To: <1064351733.2gqn7u1ekkqo@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Subject: Re: [PHP-DEV] Re: Fwd: Re: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed) From: jan@horde.org (Jan Schneider) I *love* it when threads silently die. ;-) Will this problem actually adressed by anyone or will we again have to release new versions of our software just because a minor PHP came out or deal with a huge amount of user complaints? Zitat von Jan Schneider : > Zitat von Jay Smith : > > > Jan Schneider wrote: > > > > > > > > I generally agree (this is the purpose of E_NOTICE after all), but > > there > > > is a subtle difference between what has been fixed and what is broken > > now. > > > Passing NULLs to array_merge didn't lead to the borked arrays that > have > > > been "fixed" by this patch. > > > > > > > How are the arrays borked? The patch doesn't touch, skip or otherwise > do > > anything to any of the parameters, it just does a type check. Am I > > missing > > something here? (Which is quite possible...) > > Ah, well, I misread the original bug report. With "borked" I meant that > array_merge(false, array("foo" => "bar")) resulted in array(0 => false, > "foo" => "bar"). I though this was changed by the patch. > > Anyway, array_merge(array("foo" => "bar"), null) was never producing such > an > array and should thus not result in an E_NOTICE. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft