On 2026-06-23 01:13, Gina P. Banyard wrote:

We still have a bit of time anyone else to propose additional deprecations, and 
if you have write access feel free to add them directly to the RFC.

Is spl_object_hash() still useful? The string it creates used to be quite a bit more complex, but eventually it became equivalent to

str_pad(dechex(spl_object_id($obj)), 16, '0', STR_PAD_LEFT) . '0000000000000000'

I.e., it provides exactly the same content as spl_object_id, but in a much more obtuse way. For anyone _needing_ that format, the polyfill is just above.


I suppose there might be changes in the future which will make the hash more useful (parallelism where objects are created simultaneously and independently), but then it would be spl_object_id() that has trouble coping.

Reply via email to