summaryrefslogtreecommitdiff
path: root/tests/lang/bug30085.phpt
blob: ad69c26fc10c0fa1496198e551c47e76f95aad2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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