#29176 [Opn]: $_GLOBALS['_REQUEST'], $GLOBALS['_ENV'] AND $GLOBALS['_SERVER'] are empty

From: Date: Thu, 15 Jul 2004 02:28:38 +0000
Subject: #29176 [Opn]: $_GLOBALS['_REQUEST'], $GLOBALS['_ENV'] AND $GLOBALS['_SERVER'] are empty
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-62331@lists.php.net to get a copy of this message
 ID:               29176
 User updated by:  webmaster at ragnarokonline dot de
 Reported By:      webmaster at ragnarokonline dot de
 Status:           Open
-Bug Type:         Strings related
+Bug Type:         Variables related
 Operating System: SuSE 9.0
 PHP Version:      5.0.0
 New Comment:

Category => Variables related 
 
Sorry for bugspam


Previous Comments:
------------------------------------------------------------------------

[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


Thread (23 messages)

« previous php.bugs (#62331) next »