1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/tests/lang/bug24908.phpt
2021-10-05 09:51:58 +01:00

19 lines
311 B
PHP

--TEST--
Bug #24908 (super-globals cannot 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