summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>1999-12-24 15:43:39 +0000
committerAndi Gutmans <andi@php.net>1999-12-24 15:43:39 +0000
commit3f6e00e48ddef5ab2dd73aa093c3654edd6ca534 (patch)
treedbc0e52fe06f082ab90885c03c8ee6b316b42beb /ext/standard/array.c
parent62b2087a84018cf19e569b0256f2c3cbf4179470 (diff)
downloadphp-git-3f6e00e48ddef5ab2dd73aa093c3654edd6ca534.tar.gz
- 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.
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index a7c7a908e8..c60f9a6f36 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -1059,7 +1059,7 @@ static void _compact_var(HashTable *eg_active_symbol_table, zval *return_value,
if (zend_hash_find(eg_active_symbol_table, entry->value.str.val,
entry->value.str.len+1, (void **)&value_ptr) != FAILURE) {
value = *value_ptr;
- data = (zval *)emalloc(sizeof(zval));
+ data = ALLOC_ZVAL();
*data = *value;
zval_copy_ctor(data);
INIT_PZVAL(data);