Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27248 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26060 invoked by uid 1010); 3 Jan 2007 18:51:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26044 invoked from network); 3 Jan 2007 18:51:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2007 18:51:29 -0000 Authentication-Results: pb1.pair.com header.from=andrei@gravitonic.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=andrei@gravitonic.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain gravitonic.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: andrei@gravitonic.com X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.5 (sometimes 2.4) (4) Received: from [204.11.219.139] ([204.11.219.139:55695] helo=lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/13-20008-22BFB954 for ; Wed, 03 Jan 2007 13:51:15 -0500 Received: from [66.228.175.145] (borndress-lm.corp.yahoo.com [66.228.175.145]) (authenticated bits=0) by lerdorf.com (8.13.8/8.13.8/Debian-3) with ESMTP id l03IpBn2015855; Wed, 3 Jan 2007 10:51:11 -0800 In-Reply-To: <4592E46C.6010107@zend.com> References: <4592D62F.7070701@zend.com> <674C0731-D508-4AB7-93ED-7ECC60E6ECE0@gravitonic.com> <4592E46C.6010107@zend.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <4e4ee4507f33374b2afa7678cb9be605@gravitonic.com> Content-Transfer-Encoding: 7bit Cc: php-dev Internals Date: Wed, 3 Jan 2007 10:51:44 -0800 To: Antony Dovgal X-Mailer: Apple Mail (2.624) Subject: Re: [PHP-DEV] Return value of convert_to_*() From: andrei@gravitonic.com (Andrei Zmievski) 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. -Andrei 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