note 95956 deleted from class.splobjectstorage by danbrown
| From: | danbrown@php.net | Date: | Wed, 03 Feb 2010 17:32:29 +0000 |
| Subject: | note 95956 deleted from class.splobjectstorage by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165632@lists.php.net to get a copy of this message | ||
Note Submitter: David@OnDevice
----
Documentation lead me to believe that SpObjectStorage does not support scalar keys- but this is
incorrect- SplObjectStorage DOES support scalar keys, but will trigger warnings, and unfortunately
these cannot be suppressed with @. I have no idea of the performance hit that warnings produce, so
have elected to use my own PHP HashMap implementation when there is a requirement for non-object
keys.
Just a quirk of SplObjectStorage I felt was useful to note.