[php-src] PR #15960: Lazy objects: foreach edge cases

From: Date: Thu, 19 Sep 2024 15:32:30 +0000
Subject: [php-src] PR #15960: Lazy objects: foreach edge cases
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-28676@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/15960 Author: arnaud-lb This fixes a few edge cases around foreach on non-iterable lazy objects: - Deny resetAsLazy() on objects being iterated, as we can not implement a consistent behavior between ghosts and proxies. Also, it makes no sense to reset an object during iteration. - foreach() doesn't always use the get_properties handler, so lazy objects with a property ht would not be initialized. - Iterating over proxies whose real instance is also a proxy was broken

« previous php.git-pulls (#28676) next »