]> granicus.if.org Git - php/commitdiff
fix bug #27979
authorStanislav Malyshev <stas@php.net>
Tue, 13 Apr 2004 16:21:24 +0000 (16:21 +0000)
committerStanislav Malyshev <stas@php.net>
Tue, 13 Apr 2004 16:21:24 +0000 (16:21 +0000)
ext/spl/spl_array.c

index e9cba4beaecb4fca51d17d367fef3bd41d63d9bf..1ad6acd5071f84c3b4dd16b682e5f644c68b1921 100755 (executable)
@@ -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");