note 128395 added to function.spl-object-hash

From: Date: Fri, 14 Apr 2023 00:17:15 +0000
Subject: note 128395 added to function.spl-object-hash
Groups: php.notes 
Request: Send a blank email to php-notes+get-220350@lists.php.net to get a copy of this message
This function is slightly older than spl_object_id. Its output is more complex but doesn't actually provide any more information than the newer function. It used to be a lot more complex (without being any more informative) but now it's merely the object's ID number written in hex with a lot of padding to maintain the old format. spl_object_id just gives the ID number as a plain integer. You're probably better off using spl_object_id, and thinking about migrating if you're already using spl_object_hash; there is a chance this function will be deprecated and subsequently removed in the future. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.13.130 (proxied: 125.239.194.160) ---- Manual Page -- https://php.net/manual/en/function.spl-object-hash.php Edit -- https://main.php.net/note/edit/128395 Del: integrated -- https://main.php.net/note/delete/128395/integrated Del: useless -- https://main.php.net/note/delete/128395/useless Del: bad code -- https://main.php.net/note/delete/128395/bad+code Del: spam -- https://main.php.net/note/delete/128395/spam Del: non-english -- https://main.php.net/note/delete/128395/non-english Del: in docs -- https://main.php.net/note/delete/128395/in+docs Del: other reasons-- https://main.php.net/note/delete/128395 Reject -- https://main.php.net/note/reject/128395 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220350) next »