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

-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to