paragonie / random_compat

PHP 5.x support for random_bytes() and random_int()
https://paragonie.com/projects
MIT License
8.16k stars 145 forks source link

"mbstring.func_overload" and "MB_OVERLOAD_STRING" removal from php8 #181

Open wesleyswordfish opened 1 year ago

wesleyswordfish commented 1 year ago

In preparartion for a php I noticed a problem

In the file byte_safe_strings.php the if statement check no longer seems necessary and these constants are no longer are defined in php8

paragonie-security commented 1 year ago

This polyfill doesn't do anything > PHP 7.

Set your requirements string to >= 2 and Composer should deliver a 9.99.99 version on PHP 8.