Re: [PATCH] __toString()
| From: | Marcus Boerger | Date: | Mon, 26 Sep 2005 20:25:21 +0000 |
| Subject: | Re: [PATCH] __toString() | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19175@lists.php.net to get a copy of this message | ||
Hello Dmitry,
looks good
Monday, September 26, 2005, 8:55:30 PM, you wrote:
> Hi Marcus,
> This is improved version of your patch.
> It breaks only two tests those must be changed. (instead of > 10 those
> shouldn't)
> Please review.
> Thanks. Dmitry.
>> -----Original Message-----
>> From: Marcus Boerger [mailto:helly@php.net]
>> Sent: Sunday, September 25, 2005 4:37 PM
>> To: internals
>> Subject: [PHP-DEV] [PATCH] __toString()
>>
>>
>> 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.