From: Antony Dovgal Date: Fri, 12 Aug 2005 22:53:13 +0000 (+0000) Subject: initialize key type when adding next index X-Git-Tag: PRE_NEW_OCI8_EXTENSION~291 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29573483def169a6ff77cab273a665d9f39e1b33;p=php initialize key type when adding next index --- diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c index 41178883fb..e020319ab0 100644 --- a/Zend/zend_hash.c +++ b/Zend/zend_hash.c @@ -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();