Re: Exception::__toString() not called

From: Date: Wed, 17 Mar 2004 16:05:06 +0000
Subject: Re: Exception::__toString() not called
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-8562@lists.php.net to get a copy of this message
Hi Andi, Quick question - Andi Gutmans wrote:
Marcus and rest, Zeev and I took a long look at the whole __toString() issue. There is a problem today that make_printabl_zval() is being called in many places, some of which can't cope with a user-land __toString() being called. In order to support this we will have to do a complete restructuring of the opcodes something we don't want to do pre-5.0.0.
Just to clarify, this is only for internal classes like Exception, right? Userland __toString() will continue to be invoked when an explicit (string) cast (or concat, etc.) is used, correct? Thanks, Hans

« previous php.internals (#8562) next »