mirror of
https://github.com/php/php-src.git
synced 2026-04-29 11:13:36 +02:00
24 lines
271 B
PHP
24 lines
271 B
PHP
--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
|