From 62b2087a84018cf19e569b0256f2c3cbf4179470 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Fri, 24 Dec 1999 15:22:11 +0000 Subject: - Create two new macro's. ALLOC_ZVAL() and FREE_ZVAL(z) and make Zend use them. --- Zend/zend_operators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zend/zend_operators.c') diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index ed4be2cc0b..60f568a3df 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -339,7 +339,7 @@ ZEND_API void convert_to_string(zval *op) static void convert_scalar_to_array(zval *op, int type) { - zval *entry = (zval *) emalloc(sizeof(zval)); + zval *entry = ALLOC_ZVAL(); *entry = *op; INIT_PZVAL(entry); -- cgit v1.2.1