Add deprecation notice when enabling mhash (#12586)

The mhash* functions are deprecated as of PHP 8.1.0.
https://wiki.php.net/rfc/deprecations_php_8_1
This commit is contained in:
Peter Kokot 2023-11-01 17:26:27 +01:00 committed by GitHub
parent 1b846f89b9
commit 2a60543cee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@ PHP_ARG_WITH([mhash],
[Include mhash support])])
if test "$PHP_MHASH" != "no"; then
AC_MSG_WARN([The --with-mhash option and mhash* functions are deprecated as of PHP 8.1.0])
AC_DEFINE(PHP_MHASH_BC, 1, [ ])
fi

View file

@ -3,6 +3,7 @@
ARG_WITH('mhash', 'mhash support (BC via hash)', 'no');
if (PHP_MHASH != 'no') {
WARNING("mhash* functions are deprecated as of PHP 8.1.0");
AC_DEFINE('PHP_MHASH_BC', 1);
}