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

From: Date: Mon, 01 Dec 2003 13:26:25 +0000
Subject: Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-5871@lists.php.net to get a copy of this message
WF>> What I'm trying to say is that (string)$obj really should work (as it WF>> does currently) for overloaded objects because they might not have a I see where you are heading. I would say it should work for objects with explicit cast, but not implicitly, then. Meaning, the cast opcode should call the method for object, I think. That would be a good trade-off between making the cast too magical and requiring explicit toString call. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.109

« previous php.internals (#5871) next »