#35404 [Com]: _SERVER

From: Date: Thu, 31 Aug 2006 13:50:52 +0000
Subject: #35404 [Com]: _SERVER
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-101572@lists.php.net to get a copy of this message
 ID:               35404
 Comment by:       sperson at lfdj dot com
 Reported By:      kam66be at gmail dot com
 Status:           No Feedback
 Bug Type:         *General Issues
 Operating System: Linux
 PHP Version:      5.1.0
 New Comment:

Same problem here after upgrade from PHP 5.1.5.
Server versions :
- PHP 5.1.6
- APC 3.0.11

The solution with "auto_globals_jit off" simply works for us.

Please note that while the server was in PHP 5.1.5 we never faced the
problem.


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

[2005-12-07 01:00:05] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2005-11-26 21:18:31] etnu at etnu dot org

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.

------------------------------------------------------------------------

[2005-11-26 10:05:59] tony2001@php.net

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


Thread (4 messages)

« previous php.bugs (#101572) next »