diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-02-01 15:03:10 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-02-01 15:03:10 +0100 |
commit | ba5d2e6af3cfd4ee2712339ac013a436f461767d (patch) | |
tree | c5ba4bd60a593d24d1f8a470a8ce436e2f2f53d9 /ext/mbstring/php_mbregex.c | |
parent | e2375914678b38ff81a31b6743d8d6a4f38f4c57 (diff) | |
parent | e366ceebade0fb3c30d4f99b82a11e5fc879d22e (diff) | |
download | php-git-ba5d2e6af3cfd4ee2712339ac013a436f461767d.tar.gz |
Merge branch 'PHP-7.4'
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r-- | ext/mbstring/php_mbregex.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index 5ceb492f2c..96c783d589 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -1050,6 +1050,10 @@ static void _php_mb_regex_ereg_replace_exec(INTERNAL_FUNCTION_PARAMETERS, OnigOp arg_pattern = Z_STRVAL_P(arg_pattern_zval); arg_pattern_len = Z_STRLEN_P(arg_pattern_zval); } else { + php_error_docref(NULL, E_DEPRECATED, + "Non-string patterns will be interpreted as strings in the future. " + "Use an explicit chr() call to preserve the current behavior"); + /* FIXME: this code is not multibyte aware! */ convert_to_long_ex(arg_pattern_zval); pat_buf[0] = (char)Z_LVAL_P(arg_pattern_zval); |