You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from PHP 8.4 it's possible to call new ReflectionGenerator($generator) on a closed generator (before 8.4 it throws a ReflectionException which is what Tracy relies on in BlueScreen::findGeneratorsAndFibers). This leads to an unexpected ReflectionException in section-stack-generator.phtml ($ref->getTrace(): it fails if the generator is closed).
Version: 2.10.10
Bug Description
Starting from PHP 8.4 it's possible to call
new ReflectionGenerator($generator)
on a closed generator (before 8.4 it throws aReflectionException
which is what Tracy relies on inBlueScreen::findGeneratorsAndFibers
). This leads to an unexpectedReflectionException
insection-stack-generator.phtml
($ref->getTrace()
: it fails if the generator is closed).Here is an example of the changed behavior.
Steps To Reproduce
Run the following code with PHP 8.4:
Expected Behavior
Closed generators should be excluded the same way as they were before PHP 8.4.
Possible Solution
Check
ReflectionGenerator::isClosed
infindGeneratorsAndFibers
.The text was updated successfully, but these errors were encountered: