diff options
author | Zeev Suraski <zeev@php.net> | 1999-12-26 21:21:33 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-12-26 21:21:33 +0000 |
commit | 235386b24569eb5d41baffa88151550ba04992ce (patch) | |
tree | 0db42a31df098a289a813527b823098d41bd5312 /Zend/zend_builtin_functions.c | |
parent | c517633b4963b684fd9f43704a72bcbbe4d30bf2 (diff) | |
download | php-git-235386b24569eb5d41baffa88151550ba04992ce.tar.gz |
Change ALLOC_ZVAL() semantics
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r-- | Zend/zend_builtin_functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index f7137b912f..22fe6b1b0c 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -162,7 +162,7 @@ ZEND_FUNCTION(func_get_args) for (i=0; i<arg_count; i++) { zval *element; - element = ALLOC_ZVAL(); + ALLOC_ZVAL(element); *element = **((zval **) (p-(arg_count-i))); zval_copy_ctor(element); INIT_PZVAL(element); @@ -239,7 +239,7 @@ ZEND_FUNCTION(each) /* add value elements */ if (entry->is_ref) { - tmp = ALLOC_ZVAL(); + ALLOC_ZVAL(tmp); *tmp = *entry; zval_copy_ctor(tmp); tmp->is_ref=0; |