Re: [PHP-DEV] Re: Missing __toString() part

2006-06-04 Thread Derick Rethans
On Sun, 4 Jun 2006, Michael Wallner wrote: > 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

[PHP-DEV] Re: Missing __toString() part

2006-06-04 Thread Michael Wallner
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. -1 on a

[PHP-DEV] Re: Missing __toString() part

2006-06-04 Thread Zeev Suraski
In case we can't find a solution Andi's (a) approach, I think I like the explicit cast approach better than just implicitly converting to string. Rasmus pointed out that it's not clear why of all types PHP would implicitly convert the object to a string, and chances are that he's not the only

[PHP-DEV] Re: Missing __toString() part

2006-06-03 Thread Greg Beaver
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.