Re: Re: Fwd: Re: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed)

From: Date: Wed, 08 Oct 2003 00:39:58 +0000
Subject: Re: Re: Fwd: Re: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed)
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-4737@lists.php.net to get a copy of this message
<?php $a = null; sort($a); ?> Majority (if not all) array function, will error out when they encounter a variable that is not array when an array argument is expected. If anything this patch add consistency that helps to make code clearer. Heck, Is suspect a far number of people will be able to find bugs in their code because they will now be warned that a function is getting a string/null/etc... instead silently accepting any argument.

« previous php.internals (#4737) next »