xref: /PHP-5.3/Zend/tests/bug36268.phpt (revision 610c7fbe)
1--TEST--
2Bug #36268 (Object destructors called even after fatal errors)
3--FILE--
4<?php
5class Foo {
6	function __destruct() {
7		echo "Ha!\n";
8	}
9}
10$x = new Foo();
11bar();
12?>
13--EXPECTF--
14Fatal error: Call to undefined function bar() in %sbug36268.php on line 8
15