#
b175ea42 |
| 29-Nov-2023 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix GH-12826: Weird pointers issue in nested loops This regressed in cd53ce838a. The loop with `zend_hash_iterators_update` hangs forever because `iter_pos` can't advance to idx. Thi
Fix GH-12826: Weird pointers issue in nested loops This regressed in cd53ce838a. The loop with `zend_hash_iterators_update` hangs forever because `iter_pos` can't advance to idx. This is because the `zend_hash_iterators_lower_pos` upper bound is `target->nNumUsed`, but that is set to `source->nNumOfElements`. That means that if there are holes in the array, we still loop over all the buckets but the number of bucket slots will not match. Fix it by changing the assignment. Closes GH-12831.
show more ...
|