mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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:
parent
1b846f89b9
commit
2a60543cee
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue