Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7584 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76440 invoked by uid 1010); 4 Feb 2004 21:37:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76376 invoked from network); 4 Feb 2004 21:37:50 -0000 Received: from unknown (HELO mrout1.yahoo.com) (216.145.54.171) by pb1.pair.com with SMTP; 4 Feb 2004 21:37:50 -0000 Received: from bourbon.corp.yahoo.com (bourbon.corp.yahoo.com [216.145.53.135]) by mrout1.yahoo.com (8.12.10/8.12.10/y.out) with ESMTP id i14LbEZG046694; Wed, 4 Feb 2004 13:37:14 -0800 (PST) Received: (from andrei@localhost) by bourbon.corp.yahoo.com (8.12.9/8.11.1) id i14LbERC040466; Wed, 4 Feb 2004 13:37:14 -0800 (PST) (envelope-from andrei@gravitonic.com) X-Authentication-Warning: bourbon.corp.yahoo.com: andrei set sender to andrei@gravitonic.com using -f Date: Wed, 4 Feb 2004 13:37:14 -0800 To: Zeev Suraski Cc: internals@lists.php.net Message-ID: <20040204213714.GB40381@gravitonic.com> References: <5.1.0.14.2.20040204201046.06eae688@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.2.20040204201046.06eae688@localhost> User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] RC1 From: andrei@gravitonic.com (Andrei Zmievski) 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. - Andrei