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

From: Date: Thu, 11 Nov 2004 09:58:21 +0000
Subject: #29176 [Fbk->Opn]: $GLOBALS['_REQUEST'], $GLOBALS['_ENV'] AND $GLOBALS['_SERVER'] are empty
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-68951@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: Feedback +Status: Open Bug Type: Variables related Operating System: All PHP Version: 5.0.0 Assigned To: sesser New Comment: Yes, I could reproduce this without using mmcache. This is dependent of auto_globals_jit. The problem is, that for example var_dump($_SERVER); does trigger the jit, but that var_dump($GLOBALS['_SERVER']); doesn't. Previous Comments: ------------------------------------------------------------------------ [2004-11-11 09:56:02] tony2001@php.net Can you reproduce it without mmcache enabled ? ------------------------------------------------------------------------ [2004-11-11 09:17:12] marrtins at hackers dot lv i think this is a mmcache issue. today i get similar problems - once file is loaded with mmcache it is ok, next time there is no more $_SERVER variable executing that script again. notice, that it happens with apache (v 1.3.33), from command line same script works well (php5.0.2). also, with php4.3.7+apache1.3.27 it works as excpected too. ------------------------------------------------------------------------ [2004-08-24 03:12:00] webmaster at ragnarokonline dot de Changing OS from SuSE 9.0 to All, since this is not limited to SuSE. ------------------------------------------------------------------------ [2004-08-20 20:09:54] webmaster at ragnarokonline dot de mmh ... or even $GLOBALS in general, so var_dump($GLOBALS) would include $_SERVER, $_ENV and $_REQUEST and scripts, like <?php var_dump(in_array('_SERVER', array_keys($GLOBALS))); ?> work as expected, which means the above script would return bool(true) for example? ------------------------------------------------------------------------ [2004-08-20 19:56:22] webmaster at ragnarokonline dot de Perhaps triggering the jit, when $GLOBALS['_REQUEST'], $GLOBALS['_ENV'] or $GLOBALS['_SERVER'] is being called should fix the issue? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/29176 -- Edit this bug report at http://bugs.php.net/?id=29176&edit=1

« previous php.bugs (#68951) next »