Re: Missing __toString() part

From: Date: Sat, 03 Jun 2006 12:49:50 +0000
Subject: Re: Missing __toString() part
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-23878@lists.php.net to get a copy of this message
Yes definitely, that functionality would be useful. Regards, Michael On 6/3/06, Pierre <pierre.php@gmail.com> wrote:
Hi, On 6/3/06, Marcus Boerger <mail@marcus-boerger.de> 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. $arr[new Test] = 'abc'; makes very little sense to me, as well as $a = new Test; $arr[$a] = 'abc'; Do we really want to support that? --Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.internals (#23878) next »