On October 8, 2003 08:53 am, Zeev Suraski wrote:
> >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.
>
> What do you mean by a mere advisory?

In 4.3.X the patch only added E_NOTICE that majority of users block anyway and 
it was added to indicate a behavior change in 5.0. I felt that was a good 
idea since it is unlikely we'd have an in between 4.3.X - 5.0 release. This 
way people are made aware of the pending change. My main reason for wanting 
an E_NOTICE in 4.3.X was to warn people of the change (since we have an 
opportunity to do so) rather then have their code suddenly break when 
upgrading to 5.0.

> Quite possible, but it's still debatable whether it should be that way or
> not. Speaking of consistency, the class type hints in ZE2 don't prevent you
> (at least by default) the ability to pass in NULL values.  Extending this
> to the way arrays are handled in builtin functions makes sense to me.

Good point. What about other values such as bool, int, etc... We could convert 
them to array(bool|int|etc...) and thus allow complete non-array argument 
support for array functions.

Ilia

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to