note 90296 added to function.spl-object-hash
| From: | (AT) | Date: | Wed, 15 Apr 2009 11:48:33 +0000 |
| Subject: | note 90296 added to function.spl-object-hash | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-153286@lists.php.net to get a copy of this message | ||
Easy does it
if (!function_exists('spl_object_hash')) {
/**
* Returns the hash of the unique identifier for the object.
*
* @param object $object
* @author Andreas Rein
* @return string
*/
function spl_object_hash($object) {
if (is_object($object)) {
return md5((string)$object);
}
trigger_error(__FUNCTION__ . "() expects parameter 1 to be object",
E_USER_WARNING);
return null;
}
}
----
Server IP: 212.124.37.9
Probable Submitter: 79.196.251.62
----
Manual Page -- http://www.php.net/manual/en/function.spl-object-hash.php
Edit -- https://master.php.net/note/edit/90296
Del: integrated -- https://master.php.net/note/delete/90296/integrated
Del: useless -- https://master.php.net/note/delete/90296/useless
Del: bad code -- https://master.php.net/note/delete/90296/bad+code
Del: spam -- https://master.php.net/note/delete/90296/spam
Del: non-english -- https://master.php.net/note/delete/90296/non-english
Del: in docs -- https://master.php.net/note/delete/90296/in+docs
Del: other reasons-- https://master.php.net/note/delete/90296
Reject -- https://master.php.net/note/reject/90296
Search -- https://master.php.net/manage/user-notes.php