sniper Sat Nov 29 02:54:20 2003 EDT
Added files:
/php-src/tests/lang bug24908.phpt
Log:
test for bug #24908
Index: php-src/tests/lang/bug24908.phpt
+++ php-src/tests/lang/bug24908.phpt
--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
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php