summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r--Zend/zend_builtin_functions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index 43b08390f5..f7137b912f 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 = (zval *) emalloc(sizeof(zval));
+ element = ALLOC_ZVAL();
*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 = (zval *)emalloc(sizeof(zval));
+ tmp = ALLOC_ZVAL();
*tmp = *entry;
zval_copy_ctor(tmp);
tmp->is_ref=0;