mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Fix bug #30868 (evaluated pointer comparison in mbregex causes compile
failure).
This commit is contained in:
parent
91b48c2a89
commit
01c0d589ef
1 changed files with 1 additions and 1 deletions
|
@ -501,7 +501,7 @@ PHP_FUNCTION(mb_regex_encoding)
|
|||
zend_get_parameters_ex(1, &arg1) != FAILURE) {
|
||||
convert_to_string_ex(arg1);
|
||||
mbctype = php_mb_regex_name2mbctype(Z_STRVAL_PP(arg1));
|
||||
if (mbctype < 0) {
|
||||
if (mbctype == ONIG_ENCODING_UNDEF) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown encoding \"%s\"", Z_STRVAL_PP(arg1));
|
||||
RETVAL_FALSE;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue