[php-src] Issue #8073: Calling debug_backtrace in a foreach cycle restarts the foreach cycle

From: Date: Tue, 15 Mar 2022 12:02:28 +0000
Subject: [php-src] Issue #8073: Calling debug_backtrace in a foreach cycle restarts the foreach cycle
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240341@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8073 Comment Author: cmb69 This is not really related to debug_backtrace, but rather to the fact that unset causes an array separation if the array has refcount > 1, so the respective HashTableIterator is adjusted, and that causes the loop to start again from the internal array pointer. See e.g. https://3v4l.org/FsU3N.

« previous php.bugs (#240341) next »