Some functions deprecated in PHP 8.4 (uniqid, md5_hash and more)

X

Xon

Guest
uniqid/sha1/md5/md5_file/sha1_file functions are being deprecated in php 8.4

PHP: rfc:deprecations_php_8_4

wiki.php.net
wiki.php.net

sha1/md5 can be fixed by just converting to using hash('md5', ...) (or hash('sha1', ...)), while md5_file/sha1_file use hash_file instead.

Most uses of uniqid() probably should be replaced with something more reliablely unique. It looks like a few XF uses are around...

Read more

View Now...
 


Join 𝕋𝕄𝕋 on Telegram
Channel PREVIEW:
Back
Top