MioVisman / FluxBB_by_Visman

My modification of FluxBB
GNU General Public License v2.0
78 stars 13 forks source link

Deprecation #5

Closed Euea closed 6 years ago

Euea commented 6 years ago

PHP: 7.1

Deprecated: Function mcrypt_create_iv() is deprecated in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\include\srand.php on line 67

Should be removed in 7.2.

Manual suggest: http://php.net/manual/en/function.random-bytes.php Or I've found this one, hope it can help: https://stackoverflow.com/questions/41272257/mcrypt-is-deprecated-what-is-the-alternative

MioVisman commented 6 years ago

https://github.com/MioVisman/FluxBB_by_Visman/commit/818149b27011f6cf5c09966edb04bb9103e48a50

  1. 7.0+ - random_bytes() function is used
  2. 5.6 - mcrypt_create_iv() or openssl_random_pseudo_bytes() function is used
Euea commented 6 years ago

Nice, it seems work well!