Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65511 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15388 invoked from network); 30 Jan 2013 16:17:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2013 16:17:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=hanskrentel@yahoo.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=hanskrentel@yahoo.de; sender-id=unknown; domainkeys=good Received-SPF: error (pb1.pair.com: domain yahoo.de from 77.238.189.95 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hanskrentel@yahoo.de X-Host-Fingerprint: 77.238.189.95 nm1-vm0.bullet.mail.ird.yahoo.com Received: from [77.238.189.95] ([77.238.189.95:47087] helo=nm1-vm0.bullet.mail.ird.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/14-09318-49749015 for ; Wed, 30 Jan 2013 11:17:25 -0500 Received: from [212.82.105.247] by nm1.bullet.mail.ird.yahoo.com with NNFMP; 30 Jan 2013 16:17:21 -0000 Received: from [212.82.108.241] by tm19.bullet.mail.ird.yahoo.com with NNFMP; 30 Jan 2013 16:17:21 -0000 Received: from [127.0.0.1] by omp1006.mail.ird.yahoo.com with NNFMP; 30 Jan 2013 16:17:21 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 647585.78215.bm@omp1006.mail.ird.yahoo.com Received: (qmail 84553 invoked by uid 60001); 30 Jan 2013 16:17:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1359562641; bh=6bco02E6DKovT5pzASVR4WXj0aoV6H/FR4yQ8kWTe0M=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=AfprT1XtFic5K1L7ZtIahN/OTxL3yp4ZD526yzPd8soAQEUi9TR/Pm50p01VeCZhdhOdLBPzCZvMVgWc1GUAU+4RO1bDG+X95w6TesSl9Dbpo89nPWCdPRWwnpFDS9Gmdp5ML3ox6I8YHj+MIl+D3821RdSsaQUD5aUsZAfm/0g= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=AI1mnk2bR01n6dA01EHki4D77G850O6trQ56+yEegHSOlV0L4PmOKxFzld5kInhGnpElusMKeJ2/I9Xm591wdC40k46eN5zIl+DGrZNDTjf3SWngs+QW2PehNizwv3uNadHObqh1xoLbxP/TaH6DRQmEF7yZWs53Lr6nQsI1GPc= ; X-YMail-OSG: g88d7SQVM1kllhM5K6oaNeVF1jp49bQjhOZYM0HCbWQAAJW e5bh8G6zPOvPP8sIjG8lsxXrR6Jmlr0DLjnehJbQbvonhPZABq_MKy0FTQo1 MgOI4J79iQQtd7SVKzmzPAFHWeYpKQMWCJ328KgLgJir_.3vussHC3FTQJtA 4cjKOc6kSfif2mnAD_wEAHnTtYEiVxTvcHgf.g.tPmScuEuTGchXIY0klBC1 kh1z3RsJUp6S.Qm3ocTIkBKghWxXQ226TaETdTWw.jGpRVU3GxckAZ1td86q .VQtJjlMwTWgAqxFhR1csBlCXOlbMlu_KJylman6sp9K5gBn85MI86Twjk1D s38uHy6VCCOhalH9oLqWHAz93DUgL_ZDi6tFw8Ia4ngWYHi44ZYNp5zCFiad ag6HmbiRH2kYLs2o_CFOZqPzlElu1wbWktbUimPsKpAPtt927S1EKVqpCn5m nF2ausMngtK90mbrQ0iIbEpfH8CgwJFkuiank5ldH.htSn6MHPOVPcpQ- Received: from [79.225.28.46] by web133002.mail.ir2.yahoo.com via HTTP; Wed, 30 Jan 2013 16:17:21 GMT X-Rocket-MIMEInfo: 001.001,Cgo.IFZvbjogUGF1bCBEcmFnb29uaXMgPGRyYWdvb25pc0BnbWFpbC5jb20.Cj5HZXNlbmRldDogMTY6NTQgTWl0dHdvY2gsIDMwLkphbnVhciAyMDEzCsKgCj4KPlRvIGJlIGhvbmVzdCwgaXQgbG9va3MgbGlrZSBfX3RvU3RyaW5nKCkgd2FzIGp1c3QgYWRkZWQgaW4gdGhlcmUgZm9yIHRoZSBzYWtlIG9mIGl0IHdpdGhvdXQgYW55IHJlYWwgdGhvdWdodCBhcyB0byB3aGF0IGNhc3RpbmcgYW4gZW50aWVyIFNwbEZpbGVPYmplY3QgdG8gYSBzdHJpbmcuIFRoaXMgdG8gbWUgaW1wbGllcyB0aGUgZW50aXJlIG8BMAEBAQE- X-Mailer: YahooMailWebService/0.8.131.499 References: <1359498582.20362.YahooMailNeo@web133002.mail.ir2.yahoo.com> <51085497.3090504@sugarcrm.com> <1359560655.44471.YahooMailNeo@web133004.mail.ir2.yahoo.com> Message-ID: <1359562641.68384.YahooMailNeo@web133002.mail.ir2.yahoo.com> Date: Wed, 30 Jan 2013 16:17:21 +0000 (GMT) Reply-To: hakre To: Paul Dragoonis Cc: Stas Malyshev , "internals@lists.php.net" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] echo new SplFileObject(__FILE__); From: hanskrentel@yahoo.de (hakre) =0A=0A> Von: Paul Dragoonis =0A>Gesendet: 16:54 Mittwo= ch, 30.Januar 2013=0A=A0=0A>=0A>To be honest, it looks like __toString() wa= s just added in there for the sake of it without any real thought as to wha= t casting an entier SplFileObject to a string. This to me implies the entir= e object( i.e: the entire file ) should be returned as a string rather than= aliasing it to a method because why would you cast something to a string i= f you can call ->current() anyway.=0A=0A=0A>=0A>Since it's been baked into = the object for some time now it can't even be changed now.=0A=0AWould this = mean that changing it in PHP 5.5 (or 5.6) would not be an option because of= the rules of backwards compatibility?=0A=0A>=0A=0A>I'd try to avoid this c= asting magic and stick with ->current() if you actually mean it.=0A=0ASo do= I. I mean, I often foreach anyway.=0A-- hakre=0A