diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2005-02-21 10:20:23 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2005-02-21 10:20:23 +0000 |
commit | a9f320390e782880a61b3d46baacddd691d1ba97 (patch) | |
tree | 19eff9022e7f13a793e797da7b51a930aa3e31e6 /ext/mbstring/php_mbregex.c | |
parent | 435e835bbf1ac1f68abd530b804857f5c6ff0aae (diff) | |
download | php-git-a9f320390e782880a61b3d46baacddd691d1ba97.tar.gz |
- MFH: fix bug #30868 (evaluated pointer comparison in mbregex causes compile
failure).
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r-- | ext/mbstring/php_mbregex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index 31843de2b5..14654dcec5 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -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 { |