From: martyn dot griffin at charter dot net Operating system: Fedora 5 PHP version: 5.1.6 PHP Bug Type: Feature/Change Request Bug description: php 5.1.6 introduced $_SERVER problems
Description: ------------ Using Fedora 5 and yum updated from PHP 5.1.4 to PHP 5.1.6 After completetion of update, I have lost access to all of my $_SERVER values. They disappear right after assigning them in every script I use, which has crippled my current application Reproduce code: --------------- <?PHP // index.php include_once('script/funcs.php'); setTheme('default'); echo 'BG Color-->'.$_SERVER['thmBGcol']; ?> <?PHP // funcs.php function setTheme($thm) { $_SERVER['thmBGcol'] = "#000066"; } Expected result: ---------------- I expect the following line to be echoed: BG Color-->#000066 instead I get BG Color--> Actual result: -------------- instead I get BG Color--> -- Edit bug report at http://bugs.php.net/?id=39227&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39227&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39227&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39227&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39227&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39227&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39227&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39227&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39227&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39227&r=support Expected behavior: http://bugs.php.net/fix.php?id=39227&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39227&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39227&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39227&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39227&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39227&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39227&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39227&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39227&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39227&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39227&r=mysqlcfg