Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27207 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64081 invoked by uid 1010); 27 Dec 2006 21:24:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 64066 invoked from network); 27 Dec 2006 21:24:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Dec 2006 21:24:37 -0000 Authentication-Results: pb1.pair.com header.from=antony@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:29958] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2F/26-20830-174E2954 for ; Wed, 27 Dec 2006 16:24:36 -0500 Received: (qmail 13340 invoked from network); 27 Dec 2006 21:22:25 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 27 Dec 2006 21:22:25 -0000 Message-ID: <4592E46C.6010107@zend.com> Date: Thu, 28 Dec 2006 00:23:56 +0300 User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: Andrei Zmievski CC: php-dev Internals References: <4592D62F.7070701@zend.com> <674C0731-D508-4AB7-93ED-7ECC60E6ECE0@gravitonic.com> In-Reply-To: <674C0731-D508-4AB7-93ED-7ECC60E6ECE0@gravitonic.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Return value of convert_to_*() From: antony@zend.com (Antony Dovgal) On 12/28/2006 12:12 AM, Andrei Zmievski wrote: >> It's perfectly legal to do it in 5.2 and I don't see why PHP6 is >> different. >> IMO it's same as changing the E_RECOVERABLE to E_ERROR - users >> won't have any way to "workaround" it, even though this was the >> original intention of E_RECOVERABLE. > > It is not the same. E_ERROR stops execution. Returning FAILURE from > convert_to_string() is simply a flag that lets calling code know what > happened. Failure in zend_parse_parameters() means that function itself will not be executed, which is a major change in behaviour and I don't think we really want it. -- Wbr, Antony Dovgal