Browse Source

Special case for last iteration

migration/RELEASE_1_0_0
Dmitry Stogov 20 years ago
parent
commit
96511b3523
  1. 4
      Zend/zend_hash.c

4
Zend/zend_hash.c

@ -1444,7 +1444,9 @@ ZEND_API int zend_hash_get_pointer(HashTable *ht, HashPointer *ptr)
ZEND_API int zend_hash_set_pointer(HashTable *ht, const HashPointer *ptr)
{
if (ht->pInternalPointer != ptr->pos) {
if (ptr->pos == NULL) {
ht->pInternalPointer = NULL;
} else if (ht->pInternalPointer != ptr->pos) {
Bucket *p;
IS_CONSISTENT(ht);

Loading…
Cancel
Save