]> granicus.if.org Git - php/commitdiff
Remove bogus patch - the number of elements is unrelated
authorZeev Suraski <zeev@php.net>
Tue, 12 Aug 2003 06:21:02 +0000 (06:21 +0000)
committerZeev Suraski <zeev@php.net>
Tue, 12 Aug 2003 06:21:02 +0000 (06:21 +0000)
Zend/zend_hash.c

index ef606c32d3bfdb6335ab587f482ba43e424bdeee..3c30a9dd52ba663d1c718fa9430e1ccc8797974f 100644 (file)
@@ -364,7 +364,7 @@ ZEND_API int zend_hash_index_update_or_next_insert(HashTable *ht, ulong h, void
                        }
                        UPDATE_DATA(ht, p, pData, nDataSize);
                        HANDLE_UNBLOCK_INTERRUPTIONS();
-                       if ((long)h >= (long)ht->nNextFreeElement || !ht->nNumOfElements) {
+                       if ((long)h >= (long)ht->nNextFreeElement) {
                                ht->nNextFreeElement = h + 1;
                        }
                        if (pDest) {
@@ -392,7 +392,7 @@ ZEND_API int zend_hash_index_update_or_next_insert(HashTable *ht, ulong h, void
        CONNECT_TO_GLOBAL_DLLIST(p, ht);
        HANDLE_UNBLOCK_INTERRUPTIONS();
 
-       if ((long)h >= (long)ht->nNextFreeElement || !ht->nNumOfElements) {
+       if ((long)h >= (long)ht->nNextFreeElement) {
                ht->nNextFreeElement = h + 1;
        }
        ht->nNumOfElements++;