Invokation on __toString() for object used as array key

From: Date: Tue, 23 Sep 2014 08:04:34 +0000
Subject: Invokation on __toString() for object used as array key
Groups: php.internals 
Request: Send a blank email to internals+get-77510@lists.php.net to get a copy of this message
Hi all, until 5 minutes ago I thought it would be perfectly legal to use an object as an array key, given that its __toString() method is in place. Seems as if I was wrong. I know that array keys are not what is considered "string context" internally, at least not directly. Would it harm in any way to add that feature? Greetings Nico

« previous php.internals (#77510) next »