mirror of
https://github.com/php/php-src.git
synced 2026-04-28 18:53:33 +02:00
f20e11cbe1
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
9 lines
71 B
PHP
9 lines
71 B
PHP
<?php
|
|
|
|
class BadClass extends Foo
|
|
{
|
|
function dummy()
|
|
{
|
|
}
|
|
}
|