From 3f6e00e48ddef5ab2dd73aa093c3654edd6ca534 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Fri, 24 Dec 1999 15:43:39 +0000 Subject: - Use ALLOC_ZVAL() in PHP. Finding the places to put FREE_ZVAL(z) is much more tricky and I'm not sure how many places this is. zval allocations were only made directly in 11 places. --- ext/pcre/php_pcre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 865b94924d..aeaf0bf0df 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -393,7 +393,7 @@ static void _pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global) if (global && subpats_order_val == PREG_PATTERN_ORDER) { match_sets = (zval **)emalloc(num_subpats * sizeof(zval *)); for (i=0; i