summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-12-26 21:21:33 +0000
committerZeev Suraski <zeev@php.net>1999-12-26 21:21:33 +0000
commit235386b24569eb5d41baffa88151550ba04992ce (patch)
tree0db42a31df098a289a813527b823098d41bd5312 /ext/pcre/php_pcre.c
parentc517633b4963b684fd9f43704a72bcbbe4d30bf2 (diff)
downloadphp-git-235386b24569eb5d41baffa88151550ba04992ce.tar.gz
Change ALLOC_ZVAL() semantics
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index aeaf0bf0df..c7a7b3d1a9 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<num_subpats; i++) {
- match_sets[i] = ALLOC_ZVAL();
+ ALLOC_ZVAL(match_sets[i]);
array_init(match_sets[i]);
INIT_PZVAL(match_sets[i]);
}
@@ -441,7 +441,7 @@ static void _pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global)
}
else {
/* Allocate the result set array */
- result_set = ALLOC_ZVAL();
+ ALLOC_ZVAL(result_set);
array_init(result_set);
INIT_PZVAL(result_set);