Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4563 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3369 invoked by uid 1010); 23 Sep 2003 21:15:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3345 invoked from network); 23 Sep 2003 21:15:34 -0000 Received: from unknown (HELO ammma.de) (213.83.39.131) by pb1.pair.com with SMTP; 23 Sep 2003 21:15:34 -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 h8NLEpq09829 for ; Tue, 23 Sep 2003 23:14:51 +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 XAA15672 for ; Tue, 23 Sep 2003 23:15:31 +0200 Received: by neo.wg.de (Postfix, from userid 30) id 9B36F99284; Tue, 23 Sep 2003 23:15:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by localhost (Horde) with HTTP for ; Tue, 23 Sep 2003 23:15:33 +0200 Message-ID: <1064351733.2gqn7u1ekkqo@localhost> X-Priority: 3 (Normal) Date: Tue, 23 Sep 2003 23:15:33 +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> In-Reply-To: <20030923210103.70589.qmail@pb1.pair.com> 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) 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