Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27250 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32564 invoked by uid 1010); 3 Jan 2007 18:58:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32549 invoked from network); 3 Jan 2007 18:58:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2007 18:58:48 -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:54521] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/34-20008-6ECFB954 for ; Wed, 03 Jan 2007 13:58:48 -0500 Received: (qmail 10450 invoked from network); 3 Jan 2007 18:57:04 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 3 Jan 2007 18:57:04 -0000 Message-ID: <459BFCE1.5040208@zend.com> Date: Wed, 03 Jan 2007 21:58:41 +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> <4592E46C.6010107@zend.com> <4e4ee4507f33374b2afa7678cb9be605@gravitonic.com> In-Reply-To: <4e4ee4507f33374b2afa7678cb9be605@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 01/03/2007 09:51 PM, Andrei Zmievski wrote: > Only in cases where people blindly pass objects where strings are > expected. It won't break anything for those objects that know how to > convert themselves. It still see no reasons for this particular change in behavior. It was allowed in the past and I'm sure it should be still okay to do it as long as there are no technical reasons to prevent it, which I'm unable to see. > On Dec 27, 2006, at 1:23 PM, Antony Dovgal wrote: > >> 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 > -- Wbr, Antony Dovgal