]> granicus.if.org Git - php/commitdiff
Oops, didn't mean to commit that.
authorAndrei Zmievski <andrei@php.net>
Wed, 28 Jun 2000 20:09:04 +0000 (20:09 +0000)
committerAndrei Zmievski <andrei@php.net>
Wed, 28 Jun 2000 20:09:04 +0000 (20:09 +0000)
ext/standard/array.c

index 2eced456c2fccf391ad2a908cfc88e000af83043..6910fbb701847fb975bb5da02585e00c2acc5794 100644 (file)
@@ -1373,7 +1373,7 @@ HashTable* php_splice(HashTable *in_hash, int offset, int length,
                if (p->nKeyLength)
                        zend_hash_update(out_hash, p->arKey, p->nKeyLength, &entry, sizeof(zval *), NULL);
                else
-                       zend_hash_index_update(out_hash, p->h, &entry, sizeof(zval *), NULL);
+                       zend_hash_next_index_insert(out_hash, &entry, sizeof(zval *), NULL);
        }
        
        /* If hash for removed entries exists, go until offset+length
@@ -1385,7 +1385,7 @@ HashTable* php_splice(HashTable *in_hash, int offset, int length,
                        if (p->nKeyLength)
                                zend_hash_update(*removed, p->arKey, p->nKeyLength, &entry, sizeof(zval *), NULL);
                        else
-                               zend_hash_index_update(*removed, p->h, &entry, sizeof(zval *), NULL);
+                               zend_hash_next_index_insert(*removed, &entry, sizeof(zval *), NULL);
                }
        } else /* otherwise just skip those entries */
                for( ; pos<offset+length && p; pos++, p=p->pListNext);