1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

[ci skip] Remove misleading comment

This commit is contained in:
Niels Dossche
2025-11-08 17:19:55 +01:00
parent 8d44508a4f
commit bc458e5d08

View File

@@ -3869,7 +3869,6 @@ static inline Bucket* find_bucket_at_offset(HashTable* ht, zend_long offset)
ZEND_ASSERT(offset >= 0 && offset <= ht->nNumOfElements);
if (HT_IS_WITHOUT_HOLES(ht)) {
/* There's no need to iterate over the array to filter out holes if there are no holes */
/* This properly handles both packed and unpacked arrays. */
return ht->arData + offset;
}
/* Otherwise, this code has to iterate over the HashTable and skip holes in the array. */
@@ -3896,7 +3895,6 @@ static inline zval* find_packed_val_at_offset(HashTable* ht, zend_long offset)
ZEND_ASSERT(offset >= 0 && offset <= ht->nNumOfElements);
if (HT_IS_WITHOUT_HOLES(ht)) {
/* There's no need to iterate over the array to filter out holes if there are no holes */
/* This properly handles both packed and unpacked arrays. */
return ht->arPacked + offset;
}
/* Otherwise, this code has to iterate over the HashTable and skip holes in the array. */