At 01:37 PM 2/4/2004 -0800, Andrei Zmievski wrote:
On Wed, 04 Feb 2004, Zeev Suraski wrote:
> (a) Failure return value of FETCH_RESOURCE and the default return value -
> should we change it to be FALSE?  Today it's NULL, which is inconsistent
> with most of the functions in PHP which return FALSE on failure.  The
> downside is that changing it may break scripts that check the return value
> with === or !==

Given that there is no consistency in whether NULL or FALSE is returned
by PHP functions, I'd go with NULL. It's better semantically.

Well according to the figures I posted FALSE definitely wins with 2772 (FALSE) vs. 65 (NULL) so we are not very far from being consistent.


Andi

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



Reply via email to