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

From: Date: Mon, 05 Jun 2006 06:46:54 +0000
Subject: RE: [PHP-DEV] Missing __toString() part
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-23958@lists.php.net to get a copy of this message
We probably should support this, but not only for __toString(). Objects may also have internal get() (not __get()) and cast() handlers that should be supported too. Also usage of cast() in context of array offset don't say what do we like "int" or "string". Thanks. Dmitry. > -----Original Message----- > From: Marcus Boerger [mailto:mail@marcus-boerger.de] > Sent: Saturday, June 03, 2006 3:42 PM > To: internals@lists.php.net > Cc: Dmitry Stogov; Andi Gutmans; Zeev Suraski; Ilia Alshanetsky > Subject: [PHP-DEV] Missing __toString() part > > > 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 >

« previous php.internals (#23958) next »