Re: object to string convertion patch
| From: | Zeev Suraski | Date: | Wed, 22 Aug 2001 16:56:12 +0000 |
| Subject: | Re: object to string convertion patch | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64059@lists.php.net to get a copy of this message | ||
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