Re: __string_value() crashes with return
| From: | Zeev Suraski | Date: | Wed, 30 Aug 2000 15:19:04 +0000 |
| Subject: | Re: __string_value() crashes with return | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-31273@lists.php.net to get a copy of this message | ||
At 17:27 30-08-00, Stanislav Malyshev wrote:
It's been around for about half a year. I don't see any real downsides to it, other than having to explain that it's *NOT* an underpowered operator overloading which suggests we'll go towards this area in the future, but rather, a handy facility to debug object code.I´d say you should follow the rules and write some 'string' into it, even variables are not allowed I suppose<aol>me too!</aol> But won't this break someone's scripts? As far as I see, this thing is there for pretty long time, not (for a year at least)?i'm for removing the __string_value() call alltogether!
But at the very least, the __string_value should be fixed not to crash on non-string values!It probably just doesn't convert it to a string. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/