summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2018-03-20 17:02:52 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2018-03-20 17:02:52 +0100
commit8d9f47fb51edad51769acf3517e1daa23b518598 (patch)
treedb99a9aec846cc4e575c8ad6f51afe7f5f602087 /ext/mbstring/php_mbregex.c
parent5e106778f01ba09b3a0367af9713c9131be4e430 (diff)
parent8f5c34cd399496f58bf91fe426444c6366db8df3 (diff)
downloadphp-git-8d9f47fb51edad51769acf3517e1daa23b518598.tar.gz
Merge branch 'PHP-7.2'
* PHP-7.2: Fix #76113: mbstring does not build with Oniguruma 6.8.1
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r--ext/mbstring/php_mbregex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c
index 6aee8a46f7..f77efd4e5e 100644
--- a/ext/mbstring/php_mbregex.c
+++ b/ext/mbstring/php_mbregex.c
@@ -449,7 +449,7 @@ static php_mb_regex_t *php_mbregex_compile_pattern(const char *pattern, int patl
OnigUChar err_str[ONIG_MAX_ERROR_MESSAGE_LEN];
rc = zend_hash_str_find_ptr(&MBREX(ht_rc), (char *)pattern, patlen);
- if (!rc || rc->options != options || rc->enc != enc || rc->syntax != syntax) {
+ if (!rc || onig_get_options(rc) != options || onig_get_encoding(rc) != enc || onig_get_syntax(rc) != syntax) {
if ((err_code = onig_new(&retval, (OnigUChar *)pattern, (OnigUChar *)(pattern + patlen), options, enc, syntax, &err_info)) != ONIG_NORMAL) {
onig_error_code_to_str(err_str, err_code, &err_info);
php_error_docref(NULL, E_WARNING, "mbregex compile err: %s", err_str);