1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

Test case for bug #30085

This commit is contained in:
Ilia Alshanetsky
2004-10-04 02:46:03 +00:00
parent 900df55818
commit dee4566360
+24
View File
@@ -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