summaryrefslogtreecommitdiff
path: root/ext/pcre
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-10-18 20:10:35 +0800
committerXinchen Hui <laruence@php.net>2012-10-18 20:10:35 +0800
commite88cdaa0143aacd2d765eb0560452ea28e327e41 (patch)
tree1b1eededa92c7116c679980ef990764ee09f588e /ext/pcre
parent8bd5e15ff7a57791956c4017ee8fb4a8ac0d8d2e (diff)
downloadphp-git-e88cdaa0143aacd2d765eb0560452ea28e327e41.tar.gz
better fix for #63055
Diffstat (limited to 'ext/pcre')
-rw-r--r--ext/pcre/php_pcre.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 1af8151251..736a70871a 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -547,9 +547,8 @@ PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, int subjec
/* Overwrite the passed-in value for subpatterns with an empty array. */
if (subpats != NULL) {
- zval garbage = *subpats;
+ zval_dtor(subpats);
array_init(subpats);
- zval_dtor(&garbage);
}
subpats_order = global ? PREG_PATTERN_ORDER : 0;