Re: Missing __toString() part
| From: | Marian Kostadinov | Date: | Sun, 04 Jun 2006 16:20:13 +0000 |
| Subject: | Re: Missing __toString() part | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23944@lists.php.net to get a copy of this message | ||
There will be a BC problem with classes implementing ArrayAccess where the
array key is passed to offsetXXX methods as it is. And there we have objects
also allowed as parameters.
2006/6/3, Marcus Boerger <mail@marcus-boerger.de>:
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-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php