|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-01-03 16:03 UTC] jthijssen at noxlogic dot nl
Description: ------------ The SplObjectStorage::GetHash suggests that $object is of type 'string', while in fact, this should be type 'object', as suggested in the code. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 02:00:01 2025 UTC |
<?php $store = new SplObjectStorage(); $obj = new StdClass(); print $store->getHash($obj); print $store->getHash("obj"); Output: 0000000041d100cf0000000071936ee6 Warning: SplObjectStorage::getHash() expects parameter 1 to be object, string given in /home/jthijssen/php-src/sapi/cli/test.php on line 9