From 3c84c9c4bd343951591de3eed30a8ce81fda9755 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Tue, 13 Apr 2004 16:21:24 +0000 Subject: [PATCH] fix bug #27979 --- ext/spl/spl_array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index e9cba4beae..1ad6acd507 100755 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -198,7 +198,7 @@ static void spl_array_write_dimension(zval *object, zval *offset, zval *value TS if (!offset) { value->refcount++; - add_next_index_zval(intern->array, value); + zend_hash_next_index_insert(HASH_OF(intern->array), (void**)&value, sizeof(void*), NULL); return; } switch(Z_TYPE_P(offset)) { @@ -216,7 +216,7 @@ static void spl_array_write_dimension(zval *object, zval *offset, zval *value TS index = Z_LVAL_P(offset); } value->refcount++; - add_index_zval(intern->array, index, value); + zend_hash_index_update(HASH_OF(intern->array), index, (void**)&value, sizeof(void*), NULL); return; default: zend_error(E_WARNING, "Illegal offset type"); -- 2.50.1