Re: object to string convertion patch
| From: | Jeremy Bettis | Date: | Wed, 22 Aug 2001 17:08:26 +0000 |
| Subject: | Re: object to string convertion patch | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64064@lists.php.net to get a copy of this message | ||
My implementation does not have these inconsistencies (I looked in the
archives). The only wierd thing is print_r and dump_var.
"Zeev Suraski" <zeev@zend.com> wrote in message
news:5.1.0.14.2.20010822195524.03aeb4c8@localhost...
> 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
>