From: phpbugs at thequod dot de
Operating system: Ubuntu Linux
PHP version: 5CVS-2006-05-06 (CVS)
PHP Bug Type: Scripting Engine problem
Bug description: $_SERVER in included file is shortened to two entries
Description:
------------
I've just discovered a nasty bug: in phpMyAdmin's
index.php gets a file required:
require_once('./libraries/common.lib.php');
Inside this file then, $_SERVER is shortened to just two
entries: PHP_SELF and REQUEST_TIME (I've added a
var_dump() at the beginning).
However, var_dump($_SERVER) in index.php before the
include outputs the whole array.
And additionally, now it is correctly filled in the
include's var_dump(): Just accessing $_SERVER (through
var_dump() or $a = $_SERVER) before the include corrects
it inside the include.
Reproduce code:
---------------
I could not reproduce it with a small test script, but with phpMyAdmin
2.8.0.3.
I'm using Apache2 and PHP as FastCGI.
--
Edit bug report at http://bugs.php.net/?id=37341&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=37341&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=37341&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=37341&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37341&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=37341&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37341&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37341&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37341&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37341&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37341&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=37341&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=37341&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37341&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37341&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37341&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37341&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37341&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37341&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37341&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37341&r=mysqlcfg