summaryrefslogtreecommitdiff
path: root/Zend/tests/bug36268.phpt
blob: 42f4b5076fee19e7cbd9434aa5003e6ee5715f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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 EngineException: Call to undefined function bar() in %sbug36268.php:8
Stack trace:
#0 {main}
  thrown in %sbug36268.php on line 8