Re: __string_value() crashes with return

From: Date: Wed, 30 Aug 2000 15:32:56 +0000
Subject: Re: __string_value() crashes with return
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-31277@lists.php.net to get a copy of this message
At 18:23 30-08-00, Stanislav Malyshev wrote:
ZS>> >But at the very least, the __string_value should be fixed not to crash on ZS>> >non-string values! ZS>> ZS>> It probably just doesn't convert it to a string. I fear converting to a string will create a bad recursion case there.
As convert_to_string() does not use make_printable_zval(), it won't. If __string_value() returns $this, it'll end up print out 'Object'. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#31277) next »