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:
@@ -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
|
||||
Reference in New Issue
Block a user