Browse Source

test for bug #24908

PEAR_1_4DEV
foobar 23 years ago
parent
commit
b0d921697d
  1. 18
      tests/lang/bug24908.phpt

18
tests/lang/bug24908.phpt

@ -0,0 +1,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
Loading…
Cancel
Save