Re: RC1
| From: | Andi Gutmans | Date: | Wed, 04 Feb 2004 21:50:12 +0000 |
| Subject: | Re: RC1 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7587@lists.php.net to get a copy of this message | ||
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