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. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php