note 95956 added to class.splobjectstorage
| From: | David at OnDevice | Date: | Sun, 31 Jan 2010 14:05:30 +0000 |
| Subject: | note 95956 added to class.splobjectstorage | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165522@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 64.71.164.2
Probable Submitter: 89.101.64.145
----
Manual Page -- http://www.php.net/manual/en/class.splobjectstorage.php
Edit -- https://master.php.net/note/edit/95956
Del: integrated -- https://master.php.net/note/delete/95956/integrated
Del: useless -- https://master.php.net/note/delete/95956/useless
Del: bad code -- https://master.php.net/note/delete/95956/bad+code
Del: spam -- https://master.php.net/note/delete/95956/spam
Del: non-english -- https://master.php.net/note/delete/95956/non-english
Del: in docs -- https://master.php.net/note/delete/95956/in+docs
Del: other reasons-- https://master.php.net/note/delete/95956
Reject -- https://master.php.net/note/reject/95956
Search -- https://master.php.net/manage/user-notes.php