]> granicus.if.org Git - php/commitdiff
initialize key type when adding next index
authorAntony Dovgal <tony2001@php.net>
Fri, 12 Aug 2005 22:53:13 +0000 (22:53 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 12 Aug 2005 22:53:13 +0000 (22:53 +0000)
Zend/zend_hash.c

index 41178883fb60281b89346e53efc94e8d5429a214..e020319ab07ba5878d8af88a3ff13db32f38afc5 100644 (file)
@@ -470,6 +470,8 @@ ZEND_API int _zend_hash_index_update_or_next_insert(HashTable *ht, ulong h, void
                *pDest = p->pData;
        }
 
+       p->key.type = IS_LONG;
+
        CONNECT_TO_BUCKET_DLLIST(p, ht->arBuckets[nIndex]);
 
        HANDLE_BLOCK_INTERRUPTIONS();