#35404 [NEW]: _SERVER
| From: | kam66be at gmail dot com | Date: | Sat, 26 Nov 2005 06:55:18 +0000 |
| Subject: | #35404 [NEW]: _SERVER | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-89023@lists.php.net to get a copy of this message | ||
From: kam66be at gmail dot com
Operating system: Linux
PHP version: 5.1.0
PHP Bug Type: Scripting Engine problem
Bug description: _SERVER
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 bug report at http://bugs.php.net/?id=35404&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35404&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35404&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35404&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35404&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35404&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35404&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35404&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35404&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35404&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35404&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35404&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35404&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35404&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35404&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35404&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35404&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35404&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35404&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35404&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35404&r=mysqlcfg