mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
19 lines
289 B
Plaintext
19 lines
289 B
Plaintext
|
--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
|