Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27251 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36137 invoked by uid 1010); 3 Jan 2007 19:17:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36121 invoked from network); 3 Jan 2007 19:17:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2007 19:17:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=andrei@gravitonic.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=andrei@gravitonic.com; 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:33980] helo=lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B6/B4-20008-3410C954 for ; Wed, 03 Jan 2007 14:17:24 -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 l03JHLm3019721; Wed, 3 Jan 2007 11:17:21 -0800 In-Reply-To: <459BFCE1.5040208@zend.com> References: <4592D62F.7070701@zend.com> <674C0731-D508-4AB7-93ED-7ECC60E6ECE0@gravitonic.com> <4592E46C.6010107@zend.com> <4e4ee4507f33374b2afa7678cb9be605@gravitonic.com> <459BFCE1.5040208@zend.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <0439405cc9736eaffb02975674876cae@gravitonic.com> Content-Transfer-Encoding: 7bit Cc: php-dev Internals Date: Wed, 3 Jan 2007 11:17:53 -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) So you're okay with substr($obj, 0, 3) giving you "Obj" ?? To me, that seems broken, regardless of whether we had it "working" in the past. -Andrei On Jan 3, 2007, at 10:58 AM, Antony Dovgal wrote: > 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