Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7587 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2565 invoked by uid 1010); 4 Feb 2004 21:50:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2486 invoked from network); 4 Feb 2004 21:50:10 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 4 Feb 2004 21:50:10 -0000 Received: (qmail 6608 invoked from network); 4 Feb 2004 21:50:03 -0000 Received: from localhost (HELO ido-comp2.zend.com) (127.0.0.1) by localhost with SMTP; 4 Feb 2004 21:50:03 -0000 Message-ID: <5.1.0.14.2.20040204234748.0296f500@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 04 Feb 2004 23:50:12 +0200 To: Andrei Zmievski ,Zeev Suraski Cc: internals@lists.php.net In-Reply-To: <20040204213714.GB40381@gravitonic.com> References: <5.1.0.14.2.20040204201046.06eae688@localhost> <5.1.0.14.2.20040204201046.06eae688@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] RC1 From: andi@zend.com (Andi Gutmans) 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