summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmb@php.net>2016-07-30 12:02:56 +0200
committerChristoph M. Becker <cmb@php.net>2016-07-30 12:04:12 +0200
commit9c2814313d26968bb3a53b3b1012ea6b2cfaa922 (patch)
tree56ab9f648df57b28d0ea3c7a5076c74bee0d6fd4 /ext/mbstring/php_mbregex.c
parentca82574d7cefb05b15e13d0b91eb86b3dffa323f (diff)
parente5940aa7950effe1835e489024b840fb87f54a3c (diff)
downloadphp-git-9c2814313d26968bb3a53b3b1012ea6b2cfaa922.tar.gz
Merge branch 'PHP-7.0' into PHP-7.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 fd103abf19..db37bd3739 100644
--- a/ext/mbstring/php_mbregex.c
+++ b/ext/mbstring/php_mbregex.c
@@ -454,7 +454,7 @@ static php_mb_regex_t *php_mbregex_compile_pattern(const char *pattern, int patl
rc = zend_hash_str_find_ptr(&MBREX(ht_rc), (char *)pattern, patlen);
if (!rc || rc->options != options || rc->enc != enc || rc->syntax != 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);
+ onig_error_code_to_str(err_str, err_code, &err_info);
php_error_docref(NULL, E_WARNING, "mbregex compile err: %s", err_str);
retval = NULL;
goto out;