ID: 35404 Comment by: etnu at etnu dot org Reported By: kam66be at gmail dot com Status: Feedback Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 5.1.0 New Comment:
Are you using an opcode cache? If so, set auto_globals_jit = Off in php.ini. That seemed to do the trick for me when I encountered the same problem. Previous Comments: ------------------------------------------------------------------------ [2005-11-26 10:05:59] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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