From: Stanislav Malyshev Date: Tue, 13 Apr 2004 16:21:24 +0000 (+0000) Subject: fix bug #27979 X-Git-Tag: php-5.0.0RC2RC1~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c84c9c4bd343951591de3eed30a8ce81fda9755;p=php fix bug #27979 --- 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");