Doc #68828 [NEW]: spl-object-hash shows object only but can use callable

From: Date: Tue, 13 Jan 2015 19:21:29 +0000
Subject: Doc #68828 [NEW]: spl-object-hash shows object only but can use callable
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11849@lists.php.net to get a copy of this message
From: mgcummings at yahoo dot com Operating system: N/A PHP version: 5.4.36 Package: Documentation problem Bug Type: Documentation Problem Bug description:spl-object-hash shows object only but can use callable Description: ------------ --- From manual page: http://www.php.net/function.spl-object-hash --- Documents say parameter can only be object but callable is also allowed and the docs should be updated to reflect it. Test script: --------------- $callable = function() { return 'test'; }; $result = spl_object_hash($callable); // $result = '000000002ddd793a0000000047573d56' for example print $result .PHP_EOL; -- Edit bug report at https://bugs.php.net/bug.php?id=68828&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68828&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68828&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68828&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68828&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68828&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68828&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68828&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68828&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68828&r=support Expected behavior: https://bugs.php.net/fix.php?id=68828&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68828&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68828&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68828&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68828&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68828&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68828&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68828&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68828&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68828&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68828&r=mysqlcfg

« previous php.doc.bugs (#11849) next »