summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-07-09 20:45:55 +0000
committerZeev Suraski <zeev@php.net>1999-07-09 20:45:55 +0000
commitc43c235427418d610f749b97d4a1228b0191a7ed (patch)
tree0c3cd7d5242e2dd0413bcd1e5919067e04bdd72a /ext/pcre/php_pcre.c
parent2a6da7814c27a7e851c8c7a883441ae9d34cd95c (diff)
downloadphp-git-c43c235427418d610f749b97d4a1228b0191a7ed.tar.gz
Don't touch refcount and EA directly
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c6
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++) {