php-8.0.30-src/tests/lang/bug24908.phpt

19 lines
312 B
PHP

--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