TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
335 B
20 lines
335 B
--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";
|
|
}
|
|
}
|
|
function main() {
|
|
$test = new test();
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
OK
|
|
|