1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 08:42:29 +01:00
Files
archived-php-src/Zend/tests/bug36268.phpt
2020-02-03 22:52:20 +01:00

19 lines
341 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
Ha!