summaryrefslogtreecommitdiff
path: root/tests/lang/bug24908.phpt
blob: 30056abf3cb279cc9771aa476b0c4ffb383f08c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #24908 (super-globals can not be used in __destruct())
--INI--
variables_order=GPS
--FILE--
<?php
class test { 
	function __construct() {
		if (count($_SERVER)) echo "O";
	}
	function __destruct() {
		if (count($_SERVER)) echo "K\n";
	}
}
$test = new test();
?>
--EXPECT--
OK