Ask a Question related to PHP Development, Design and Development.
-
Ilia Alshanetsky #1
Re: [PHP-DEV] Re: Fwd: Re: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed)
On October 7, 2003 08:45 pm, Jan Schneider wrote:
Incosistent behaviour is a problem, whether it is a serious problem or a> I never said that the current behaviour is in any way consistent. But which
> behaviour the more logical one is, is debateable. Many languages support
> context dependant implicit casting, and PHP even says so explicitely in the
> manual. Why should this now be incorrect, not logical or not "proper"?
trivial one depends on a situation, however it does not change the fact it is
a problem. IMO when a function expects an array it should error out when the
argument it recieves is not array, with a possible exception of object's who
in ZE1 are nearly identical to arrays. Further more there is already an
fairly large number of functions of a similar function that operate in a
similar manner. It only makes sense to fix the one or two that do not.
Ilia
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
Ilia Alshanetsky Guest
-
[PHP-DEV] Fwd: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed)
On October 8, 2003 05:12 am, Zeev Suraski wrote: Jay's patch was already reverted by Jani so arguing this point is mostly moot. However, please... -
[PHP-DEV] Fwd: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed)
On Wednesday, Oct 8, 2003, at 13:48 Europe/Copenhagen, Anil Madhavapeddy wrote: I'm not advocating that foreach behavior should be changed in... -
[PHP-DEV] Fwd: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed)
On Wed, Oct 08, 2003 at 01:23:42PM +0200, Edin Kadribasic wrote: I think the point is to minimise the number of changes in this ``bug-fix... -
#25494 [Csd]: array_merge allowing "false" as argument (silent when non-array is passed)
ID: 25494 Updated by: sniper@php.net Reported By: enygma at phpdeveloper dot org Status: Closed Bug Type: ... -
[PHP-DEV] Fwd: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed)
On Tue, Oct 07, 2003 at 02:40:19AM +0300, Jani Taskinen wrote: Do you want me to fix the str* functions, since it seems those are accepting...



Reply With Quote

