Re: Before March 1st aka PHP 5.1 beta

From: Date: Thu, 17 Feb 2005 22:52:34 +0000
Subject: Re: Before March 1st aka PHP 5.1 beta
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-15079@lists.php.net to get a copy of this message
Hello Andi, Thursday, February 17, 2005, 8:49:44 PM, you wrote: > At 08:18 PM 2/17/2005 +0100, Marcus Boerger wrote: >>Hello internals, >> >> before we rush into another version, how about clearing some open issues >>that were explicitly relayed from 5.0 to 5.1. >> >>1) __toString() >> >> There was a problem with the Zend engine 2.0 that forced us to drop this >> feature. Now that we have 2.1 we should check again and readd the feature. >> Since PHP is designed to generate string output i think that should be >> made as easy as possible. And after learning echo and '.' it is hard to >> explain that 'echo $foo . $bar' could result in something different than >> 'echo $foo, $bar'. Besides if it turned out that there is still a >> reentrance problem then we'd need to remove __call, __get, __set, >> iterators..... > Yes, I think we could revisit this. It should work right now although I'm > still skeptical about what place to put this and what not. If I recall you > wanted convert_to_string() and all other places to support this, right? For PHP 5.0 we used to have a special conversion make_printable - i guess we shouldn't go that way again if there's no need and instead simply call the objects conversion handler that could (again) call __toString() if it is present. What do you think? -- Best regards, Marcus mailto:helly@php.net

« previous php.internals (#15079) next »