[php-src] Issue #8438: HashTableIterators of empty hashtables are not poisoned upon destruction

From: Date: Tue, 26 Apr 2022 19:54:27 +0000
Subject: [php-src] Issue #8438: HashTableIterators of empty hashtables are not poisoned upon destruction
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241270@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8438 Comment Author: nikic > b) completely remove the auto-removal on destruction and leave it the extension authors > responsibility to clear the iterators (making zend_hash_iterators_remove public API) I don't think that would work for the primary consumer (foreach), because the array may be destroyed outside its control (reassignment of the reference).

« previous php.bugs (#241270) next »