From dee45663608c2f6daadfcdbce6622b79fcc717f4 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 4 Oct 2004 02:46:03 +0000 Subject: [PATCH] Test case for bug #30085 --- tests/lang/bug30085.phpt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/lang/bug30085.phpt diff --git a/tests/lang/bug30085.phpt b/tests/lang/bug30085.phpt new file mode 100644 index 0000000000..ad69c26fc1 --- /dev/null +++ b/tests/lang/bug30085.phpt @@ -0,0 +1,24 @@ +--TEST-- +Bug #30085 (When destructor terminates script) +--FILE-- +test = new test; + } + + public function __destruct() { + exit("Bye"); + } + +} + +$test = new test2; +?> +--EXPECT-- +Bye \ No newline at end of file -- 2.50.1