Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c
| From: | Andi Gutmans | Date: | Mon, 01 Dec 2003 12:34:39 +0000 |
| Subject: | Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-5865@lists.php.net to get a copy of this message | ||
I don't think casting an object to a string should work.
I don't see why this is any better than the more verbose $obj->__toString().
Can you please explain in what situation you need __toString() to be called for SimpleXML and COM automatically and we can try and think of a solution together. A possible solution is to remove the comment I put and to remove the __toString
() call in the std objects cast handler.
Andi
At 01:09 PM 12/1/2003 +0100, Derick Rethans wrote:
On Mon, 1 Dec 2003, Wez Furlong wrote: There is no __toString in overloaded objects; thats the reason that the (string) cast should work on objects. Ah, of course :) Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php