Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4559 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55537 invoked by uid 1010); 23 Sep 2003 18:32:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 55511 invoked from network); 23 Sep 2003 18:32:21 -0000 Received: from unknown (HELO mail.info-link.net) (65.122.208.20) by pb1.pair.com with SMTP; 23 Sep 2003 18:32:21 -0000 Received: from info-link.net (spooler.info-link.net [65.122.208.6]) by mail.info-link.net (8.12.10/8.12.10) with ESMTP id h8NIWKHK026836; Tue, 23 Sep 2003 13:32:20 -0500 Message-ID: <3F7091B4.8137472E@info-link.net> Date: Tue, 23 Sep 2003 13:32:20 -0500 Organization: Info Link Inc. X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: jay@php.net CC: internals@lists.php.net References: <1064324106.4qf5jx9xw2yo@217.255.147.155> <20030923154431.28056.qmail@pb1.pair.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: checked by Vexira Milter 1.0.4; VAE 6.21.0.1; VDF 6.21.0.51 Subject: Re: [PHP-DEV] Re: Fwd: Re: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed) From: brad@info-link.net (Brad Fisher) Jay Smith wrote: > The function is called array_merge(), not null_merge() or string_merge(). > The change was to make it act more like other array functions, like > array_intersect() or array_sum(), which also check parameters for arrays. > > What's the consensus? Keep the change or revert? Personally, I think it's > more consistent if it acts like the other array functions, but if it's > causing a lot of headaches... I see no problem with the array_{merge|intersect|diff|flip|etc.} functions taking non-array parameters, since they all _return_ the resulting array. As long as they don't promote a non-array variable passed as a parameter into an array as a side-effect, I don't see the problem. I'd say revert the change and keep it as it was. -Brad