At 19:53 22-08-01, Andrei Zmievski wrote:
>On Wed, 22 Aug 2001, Jeremy Bettis wrote:
> > I changed php (current CVS) to add another magic method to Objects,
> > __toString().  Whenever an object needs to be converted to a string, 
> then it
> > will first try to call __toString() and if it can't, then it will just
> > return "Object" like now.
>
>Good luck trying to get this in.

I implemented this once, and it was even in for several mini versions.  But 
it causes inconsistencies, and it was thus removed (I don't remember what 
the inconsistencies were, look up the archives...)

Zeev


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to