Skip to content

Commit

Permalink
Add deprecation notice when enabling mhash (#12586)
Browse files Browse the repository at this point in the history
The mhash* functions are deprecated as of PHP 8.1.0.
https://wiki.php.net/rfc/deprecations_php_8_1
  • Loading branch information
petk authored Nov 1, 2023
1 parent 1b846f8 commit 2a60543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ext/hash/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions ext/hash/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2a60543

Please sign in to comment.