summaryrefslogtreecommitdiff
path: root/Zend/tests/bug36268.phpt
blob: 3bec61ff49fbe4da9bd5757cbeb38df1ac9c1af9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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!