#35404 [Opn->Fbk]: _SERVER

From: Date: Sat, 26 Nov 2005 09:06:01 +0000
Subject: #35404 [Opn->Fbk]: _SERVER
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89028@lists.php.net to get a copy of this message
ID: 35404 Updated by: tony2001@php.net Reported By: kam66be at gmail dot com -Status: Open +Status: Feedback -Bug Type: Scripting Engine problem +Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 5.1.0 New Comment: Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2005-11-26 07:55:17] kam66be at gmail dot com Description: ------------ I found that my script have the problem that _SERVER is not superglobal, and _SERVER sometimes cause 'PHP Notice: Undefined variable: _SERVER' Reproduce code: --------------- <?php function test() { echo $_SERVER['REQUEST_TIME']; echo '<br/>'; echo $_SERVER['REQUEST_URI']; } ?> Expected result: ---------------- 1132987751<br/> /test.php Actual result: -------------- <br/> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35404&edit=1

« previous php.bugs (#89028) next »