ID: 37341 Updated by: [EMAIL PROTECTED] Reported By: phpbugs at thequod dot de -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: Ubuntu Linux PHP Version: 5CVS-2006-05-06 (CVS) New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2006-05-06 20:38:49] phpbugs at thequod dot de 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 this bug report at http://bugs.php.net/?id=37341&edit=1