summaryrefslogtreecommitdiff
path: root/Zend/tests/bug36268.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug36268.phpt')
-rwxr-xr-xZend/tests/bug36268.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/tests/bug36268.phpt b/Zend/tests/bug36268.phpt
new file mode 100755
index 0000000000..5276d50d48
--- /dev/null
+++ b/Zend/tests/bug36268.phpt
@@ -0,0 +1,14 @@
+--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: Call to undefined function bar() in %sbug36268.php on line 8