diff options
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 2e80d02f65..c11739525d 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -394,8 +394,7 @@ static void _pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global) for (i=0; i<num_subpats; i++) { match_sets[i] = (zval *)emalloc(sizeof(zval)); array_init(match_sets[i]); - match_sets[i]->EA = 0; - match_sets[i]->refcount = 1; + INIT_PZVAL(match_sets[i]); } } @@ -444,8 +443,7 @@ static void _pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global) /* Allocate the result set array */ result_set = emalloc(sizeof(zval)); array_init(result_set); - result_set->EA = 0; - result_set->refcount = 1; + INIT_PZVAL(result_set); /* Add all the subpatterns to it */ for (i=0; i<count; i++) { |