On Wed, 10 Aug 2005, Marcus Boerger wrote: > i had a chat with Andi about __toString() and i hope that he finally > undestood why a lot of ppl wanted it right from the beginning. To me the > current situation is simply the worst case because noone understnds when it > works and when not (. vs ,).
Yea, this is super tricky and subtle because even though print/echo and ,/. are different, they appear to be identical in almost all other cases. I agree that forcing __toString() to return a string is perfectly reasonable. -adam -- [EMAIL PROTECTED] | http://www.trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php