mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
18 lines
325 B
PHP
18 lines
325 B
PHP
--TEST--
|
|
Bug #36268 (Object destructors called even after fatal errors)
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
function __destruct() {
|
|
echo "Ha!\n";
|
|
}
|
|
}
|
|
$x = new Foo();
|
|
bar();
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Call to undefined function bar() in %sbug36268.php:8
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %sbug36268.php on line 8
|