History log of /PHP-8.0/ext/zend_test/tests/observer_error_05.phpt (Results 1 – 3 of 3)
Revision Date Author Comments
# 12b0f1b7 13-Sep-2021 Bob Weinand

Fix #81435 Observer current_observed_frame may point to an old (overwritten) frame

Ensure current_observed_frame always points to an actually observed frame.
This solution has a caveat o

Fix #81435 Observer current_observed_frame may point to an old (overwritten) frame

Ensure current_observed_frame always points to an actually observed frame.
This solution has a caveat of being O(stack size), with the worst case occurring if there are a lot of frames between the current and previous observed frames.
An O(1) solution would require keeping track of the previous observed frame, which would require some additional frame attached metadata, which is best not attempted in an already released version.

show more ...


# cab1ea46 01-Feb-2021 Nikita Popov

XFAIL observer_error_05.phpt test


# 094e1a8b 26-Jan-2021 Dmitry Stogov

Skip dummy frames allocated on CPU stack of zend_call_function().
(Usage of "current_observed_frame" varible looks unsafe to me).