Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19162 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78929 invoked by uid 1010); 25 Sep 2005 17:51:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78913 invoked from network); 25 Sep 2005 17:51:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Sep 2005 17:51:35 -0000 X-Host-Fingerprint: 81.68.134.212 c514486d4.cable.wanadoo.nl Received: from ([81.68.134.212:5778] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 3C/9D-24510-7A3E6334 for ; Sun, 25 Sep 2005 13:51:35 -0400 Message-ID: <3C.9D.24510.7A3E6334@pb1.pair.com> To: internals@lists.php.net References: <1728334199.20050925143657@marcus-boerger.de> Date: Sun, 25 Sep 2005 19:46:09 +0200 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 81.68.134.212 Subject: Re: [PATCH] __toString() From: r.korving@xit.nl ("Ron Korving") Marcus, you are my hero :) Will it end up in 5.1? Ron "Marcus Boerger" wrote in message news:1728334199.20050925143657@marcus-boerger.de... > Hello internals, > > the patch implements __toString to have obejcts be automatically converted > to strings anywhere a string is requested. We have talked a lot about this > in the past and during OSCON Andi agreed again on it and said that the HEAD > version of the engine should be ready for it now. Futher more we have enough > time to fix any outstanding engine issues regarding this. > > http://php.net/~helly/php/ext/ze2/ze2-tostring-20050925.diff.txt > > If nobody objects with a real technical issue i'll commit the patch early > in the week. > > The patch is a little big longer because it ensures that __toString gets > treated and especially gets cached just like any other magic function is. > > Best regards, > Marcus