diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-02-03 09:31:59 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-02-03 09:31:59 +0000 |
commit | b179e081ab28aa494548ea6bea290f53cb79ca62 (patch) | |
tree | 82ddc4595794722ff6b433334e8983c70cc9e3ea /Zend/tests/bug36268.phpt | |
parent | a31f337c24be7529f4994f2824b6b8cb227f1ed8 (diff) | |
download | php-git-b179e081ab28aa494548ea6bea290f53cb79ca62.tar.gz |
Fixed bug #36268 (Object destructors called even after fatal errors)
Diffstat (limited to 'Zend/tests/bug36268.phpt')
-rwxr-xr-x | Zend/tests/bug36268.phpt | 14 |
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 |