]> granicus.if.org Git - php/commitdiff
Test case for bug #30085
authorIlia Alshanetsky <iliaa@php.net>
Mon, 4 Oct 2004 02:46:03 +0000 (02:46 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 4 Oct 2004 02:46:03 +0000 (02:46 +0000)
tests/lang/bug30085.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug30085.phpt b/tests/lang/bug30085.phpt
new file mode 100644 (file)
index 0000000..ad69c26
--- /dev/null
@@ -0,0 +1,24 @@
+--TEST--
+Bug #30085 (When destructor terminates script)
+--FILE--
+<?php
+class test { }
+
+class test2 {
+
+       public $test;
+
+       public function __construct() {
+               $this->test = new test;
+       }
+
+       public function __destruct() {
+               exit("Bye");
+       }
+
+}
+
+$test = new test2;
+?>
+--EXPECT--
+Bye
\ No newline at end of file