From 95c9e3014ae7472f9c31ed7e02704ec5340ccb41 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Wed, 9 Jun 1999 21:39:12 +0000 Subject: * Fix cases where you assign an array element to the parent array (the array was being erased before the assignment, so the element was being smashed). --- Zend/zend_API.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zend/zend_API.c') diff --git a/Zend/zend_API.c b/Zend/zend_API.c index a739fc1da9..6e30d592c7 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -326,7 +326,7 @@ ZEND_API inline int add_index_string(zval *arg, uint index, char *str, int dupli } tmp->refcount=1; tmp->is_ref=0; - return zend_hash_index_update(arg->value.ht, index, (void *) &tmp, sizeof(zval *),NULL); + return zend_hash_index_update(arg->value.ht, index, (void *) &tmp, sizeof(zval *), NULL); } -- cgit v1.2.1