On October 7, 2003 08:45 pm, Jan Schneider wrote:
> 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"?

Incosistent behaviour is a problem, whether it is a serious problem or a 
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: http://www.php.net/unsub.php

Reply via email to