Re: Re: Fwd: Re: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed)
| From: | Jay Smith | Date: | Tue, 07 Oct 2003 00:02:17 +0000 |
| Subject: | Re: Re: Fwd: Re: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed) | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4700@lists.php.net to get a copy of this message | ||
Most of the other array functions are more stringent -- they don't throw
E_NOTICEs, they throw E_WARNINGs. array_intersect(), array_diff() and
array_sum() being the ones that I can think of offhand.
J
Jan Schneider wrote:
> Zitat von Jani Taskinen <sniper@iki.fi>:
>
>> Passing array_merge*() anything else but arrays is undocumented.
>> These functions were meant to be used on arrays and this change
>> (very, VERY minor change, if I may say so) just "fixes" this.
>
> The only case I really care about are NULLs being passed to that function.
> And we don't throw E_NOTICEs if using NULLs with any type specific
> function AFAIK.
>
> Jan.
>