diff options
| author | Andi Gutmans <andi@php.net> | 1999-12-24 15:22:11 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 1999-12-24 15:22:11 +0000 |
| commit | 62b2087a84018cf19e569b0256f2c3cbf4179470 (patch) | |
| tree | 7afcdb49f6d58999e087be706391269d9bb90d32 /Zend/zend_builtin_functions.c | |
| parent | 946df29029be9eb9c4d09696e706dab99e7d8e50 (diff) | |
| download | php-git-62b2087a84018cf19e569b0256f2c3cbf4179470.tar.gz | |
- Create two new macro's. ALLOC_ZVAL() and FREE_ZVAL(z) and make Zend use
them.
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 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; |
