Skip to content

Commit 2a60543

Browse files
authored
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
1 parent 1b846f8 commit 2a60543

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ext/hash/config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ PHP_ARG_WITH([mhash],
44
[Include mhash support])])
55

66
if test "$PHP_MHASH" != "no"; then
7+
AC_MSG_WARN([The --with-mhash option and mhash* functions are deprecated as of PHP 8.1.0])
78
AC_DEFINE(PHP_MHASH_BC, 1, [ ])
89
fi
910

ext/hash/config.w32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
ARG_WITH('mhash', 'mhash support (BC via hash)', 'no');
44

55
if (PHP_MHASH != 'no') {
6+
WARNING("mhash* functions are deprecated as of PHP 8.1.0");
67
AC_DEFINE('PHP_MHASH_BC', 1);
78
}
89

0 commit comments

Comments
 (0)