From e188e4170fcc3e3a2d9ab57f3d3d24c4b26dd4bd Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 24 Apr 2019 18:28:29 +0300 Subject: Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function by reference --- ext/pcre/php_pcre.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/pcre/php_pcre.c') 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); } } /* }}} */ -- cgit v1.2.1