History log of /PHP-8.1/ext/opcache/tests/gh8063-003.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# f20e11cb 03-Apr-2022 Arnaud Le Blanc

Clear recorded errors before executing shutdown functions

Recorded errors may be attached to the wrong cached script when a fatal error
occurs during recording. This happens because the

Clear recorded errors before executing shutdown functions

Recorded errors may be attached to the wrong cached script when a fatal error
occurs during recording. This happens because the fatal error will cause a
bailout, which may prevent the recorded errors from being freed. If an other
script is compiled after bailout, or if a class is linked after bailout, the
recorded errors will be attached to it.

This change fixes this by freeing recorded errors before executing shutdown
functions.

Fixes GH-8063

show more ...