diff options
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 9ab5d44656..05f8d9f817 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -2307,7 +2307,7 @@ static void preg_replace_common(INTERNAL_FUNCTION_PARAMETERS, int is_filter) } if (zcount) { - ZEND_TRY_ASSIGN_LONG(zcount, replace_count); + ZEND_TRY_ASSIGN_REF_LONG(zcount, replace_count); } } /* }}} */ @@ -2355,7 +2355,7 @@ static PHP_FUNCTION(preg_replace_callback) replace_count = preg_replace_func_impl(return_value, regex, &fci, &fcc, subject, limit, flags); if (zcount) { - ZEND_TRY_ASSIGN_LONG(zcount, replace_count); + ZEND_TRY_ASSIGN_REF_LONG(zcount, replace_count); } } /* }}} */ @@ -2423,7 +2423,7 @@ static PHP_FUNCTION(preg_replace_callback_array) } ZEND_HASH_FOREACH_END(); if (zcount) { - ZEND_TRY_ASSIGN_LONG(zcount, replace_count); + ZEND_TRY_ASSIGN_REF_LONG(zcount, replace_count); } } /* }}} */ |