Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c

From: Date: Mon, 01 Dec 2003 12:02:32 +0000
Subject: Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-5863@lists.php.net to get a copy of this message
There is no __toString in overloaded objects; thats the reason that the (string) cast should work on objects. > > It *needs* to work so that overloaded objects (simplexml, COM etc.) > > can have their cast handlers called. > > Yeah, it's pretty much needed for those extensions... though I don't > like these things for normal user defined objects... atleast extensions > should have the possibility to have an automatic call to __toString in > cases where it is needed.

« previous php.internals (#5863) next »