Re: Missing __toString() part
| From: | Ilia Alshanetsky | Date: | Sat, 03 Jun 2006 16:16:41 +0000 |
| Subject: | Re: Missing __toString() part | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23886@lists.php.net to get a copy of this message | ||
I think this is a potentially missing bit of functionality we definitely need to consider including. There is really no technical reason why $foo[new ToStringObject] = "bar"; cannot work or a reason why it shouldn't as far as functionality goes.
Ilia Alshanetsky
On 3-Jun-06, at 7:42 AM, Marcus Boerger wrote:
Hello guys, the attached patch closes one more __toString() part. It allows to use objects that define __toString as indexes to arrays. What do you guys think about this, should we add it or stay with the old behavior that didn't allow objects as indexes at all. --Best regards,Marcus mailto:mail@marcus-boerger.de<ze2-offset-obj-tostring-20060603.diff.txt> --PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php