Re: Re: Fwd: Re: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed)
| From: | Ilia Alshanetsky | Date: | Wed, 08 Oct 2003 12:34:02 +0000 |
| Subject: | Re: Re: Fwd: Re: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4757@lists.php.net to get a copy of this message | ||
On October 8, 2003 05:12 am, Zeev Suraski wrote:
> The fact of the matter is that other than your opinion (which several
> people may support), there was and still isn't nothing problematic with
> silently ignoring NULL arrays.
Jay's patch was already reverted by Jani so arguing this point is mostly moot.
However, please note the following:
1) Functionality was NOT changed in 4.3.4 a mere advisory was added indicated
a behavior change in PHP5.
2) Nearly every single array function will return E_WARNING when it encounters
and argument that is not an array or an object.
3) New argument parsing API when told to expect an array "a" will return an
error when a non-array value is provided.
Ilia