ID: 39227 Updated by: [EMAIL PROTECTED] Reported By: martyn dot griffin at charter dot net -Status: Open +Status: Feedback Bug Type: Feature/Change Request Operating System: Fedora 5 PHP Version: 5.1.6 New Comment:
You are assigning things to _SERVER? That seems like a really bad idea. What do you think that will do? How about using $GLOBALS for that instead? Having said that, I can't reproduce your problem here. Are you running any 3rd-party extensions, or do you have variables_order in you php.ini file set to exclude "S" ? Previous Comments: ------------------------------------------------------------------------ [2006-10-22 03:55:21] martyn dot griffin at charter dot net 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 this bug report at http://bugs.php.net/?id=39227&edit=1