summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorju1ius <ju1ius@laposte.net>2016-07-30 06:08:25 +0200
committerChristoph M. Becker <cmb@php.net>2016-07-30 11:46:34 +0200
commit1d32b809034ea4cd0e765ae9fda6ca16ae045fdd (patch)
treed17373c99f4645edf726873b7a9b6c9d9da6dfea /ext/mbstring/php_mbregex.c
parentf67ccd4a7b8fb4b9e55796e69b152e2a899ba3cd (diff)
downloadphp-git-1d32b809034ea4cd0e765ae9fda6ca16ae045fdd.tar.gz
fixes bad address given to onig_error_code_to_str
Closes bug #72710 (cherry picked from commit 0fb7eb6723bcc6fd98053911543e801edb5ab763)
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 9873a85da1..7e9756fa15 100644
--- a/ext/mbstring/php_mbregex.c
+++ b/ext/mbstring/php_mbregex.c
@@ -456,7 +456,7 @@ static php_mb_regex_t *php_mbregex_compile_pattern(const char *pattern, int patl
found = zend_hash_find(&MBREX(ht_rc), (char *)pattern, patlen+1, (void **) &rc);
if (found == FAILURE || (*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 TSRMLS_CC, E_WARNING, "mbregex compile err: %s", err_str);
retval = NULL;
goto out;