#29176 [Asn]: $GLOBALS['_REQUEST'], $GLOBALS['_ENV'] AND $GLOBALS['_SERVER'] are empty
| From: | webmaster at ragnarokonline dot de | Date: | Thu, 15 Jul 2004 10:23:40 +0000 |
| Subject: | #29176 [Asn]: $GLOBALS['_REQUEST'], $GLOBALS['_ENV'] AND $GLOBALS['_SERVER'] are empty | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62366@lists.php.net to get a copy of this message | ||
ID: 29176
User updated by: webmaster at ragnarokonline dot de
-Summary: $_GLOBALS['_REQUEST'], $GLOBALS['_ENV'] AND
$GLOBALS['_SERVER'] are empty
Reported By: webmaster at ragnarokonline dot de
Status: Assigned
Bug Type: Variables related
Operating System: SuSE 9.0
PHP Version: 5.0.0
Assigned To: sesser
New Comment:
Someone at Turck-MMCache found out in a related bug I've reported, that
a workaround is to set
register_long_arrays = On
in the php.ini
Previous Comments:
------------------------------------------------------------------------
[2004-07-15 11:47:15] derick@php.net
I believe you might have caused this Stefan ;-)
------------------------------------------------------------------------
[2004-07-15 04:28:37] webmaster at ragnarokonline dot de
Category => Variables related
Sorry for bugspam
------------------------------------------------------------------------
[2004-07-15 04:27:24] webmaster at ragnarokonline dot de
Description:
------------
$_GLOBALS somehow doesn't contain the arrays $_REQUEST,
$_ENV and $_SERVER. This worked fine in PHP4.
Reproduce code:
---------------
<?php
var_dump($GLOBALS['_SERVER']);
var_dump($GLOBALS['_ENV']);
var_dump($GLOBALS['_REQUEST']);
?>
Expected result:
----------------
The contents of the arrays $_SERVER, $_ENV and $_REQUEST
are being printed.
Actual result:
--------------
NULL NULL NULL is being printed.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29176&edit=1