#34820 [NEW]: 'HTTP_ACCEPT_ENCODING' not set in $_SERVER
From: AlReece45 at yahoo dot com Operating system: Windows XP Home SP1 PHP version: 4.4.0 PHP Bug Type: Scripting Engine problem Bug description: 'HTTP_ACCEPT_ENCODING' not set in $_SERVER Description: While it was working before, the $_SERVER['HTTP_ACCEPT_ENCODING'] is not longer being set. I'm using Apache 2 with the PHP Module. Note this is not a problem of Content-Encoding being sent Reproduce code: --- ?php var_export($_SERVER['HTTP_ACCEPT_ENCODING']); ? Expected result: 'gzip, deflate' Actual result: -- NULL -- Edit bug report at http://bugs.php.net/?id=34820edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34820r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34820r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34820r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=34820r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=34820r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34820r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34820r=needscript Try newer version: http://bugs.php.net/fix.php?id=34820r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34820r=support Expected behavior: http://bugs.php.net/fix.php?id=34820r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34820r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34820r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=34820r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34820r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=34820r=dst IIS Stability: http://bugs.php.net/fix.php?id=34820r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34820r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34820r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34820r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34820r=mysqlcfg
#34820 [Fbk-Opn]: 'HTTP_ACCEPT_ENCODING' not set in $_SERVER
ID: 34820 User updated by: AlReece45 at yahoo dot com Reported By: AlReece45 at yahoo dot com -Status: Feedback +Status: Open Bug Type: Scripting Engine problem Operating System: Windows XP Home SP1 PHP Version: 4.4.0 New Comment: Sorry if this posts twice... What I meant is that is was set before. And phpinfo() does not it either. I checked both there and using the code: ?php var_export($_SERVER); ? to check to see if I was just using the wrong index or just a documentation bug. Nothing in the $_SERVER variable, or $GLOBALS (checked it too) has anything with gzip in it. It isn't a browser problem b/c I checked by sending a request manually using telnet. Previous Comments: [2005-10-10 22:30:38] [EMAIL PROTECTED] While it was working before it was working before *what*? And what your phpinfo() tells about it? Or there is no Accept-Encoding too? [2005-10-10 22:22:16] AlReece45 at yahoo dot com Description: While it was working before, the $_SERVER['HTTP_ACCEPT_ENCODING'] is not longer being set. I'm using Apache 2 with the PHP Module. Note this is not a problem of Content-Encoding being sent Reproduce code: --- ?php var_export($_SERVER['HTTP_ACCEPT_ENCODING']); ? Expected result: 'gzip, deflate' Actual result: -- NULL -- Edit this bug report at http://bugs.php.net/?id=34820edit=1
#34820 [Fbk-Opn]: 'HTTP_ACCEPT_ENCODING' not set in $_SERVER
ID: 34820 User updated by: AlReece45 at yahoo dot com Reported By: AlReece45 at yahoo dot com -Status: Feedback +Status: Open Bug Type: Scripting Engine problem Operating System: Windows XP Home SP1 PHP Version: 4.4.0 New Comment: I copied what Firefox sent using LiveHTTPHeaders and sent it using telnet via the Command Prompt to request a script that outputed $_SERVER. telnet o localhost 80 GET /test.php HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive I can give you the results if you want. I'll test the snapshot as soon as I can compile it (a few hours). If its not a php problem, what would it be? I put outputed every variable in a seperate page from my scripts and it still wasn't showing up. And I believe it stopped working when I updated to v4.4.0 Previous Comments: [2005-10-10 22:47:49] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip What I meant is that is was set before. Once again: before what happened? Yes, I got that before it stopped working, but I guess you did something as if it just magically disappeared - that's not PHP problem. Btw, it works just fine here. It isn't a browser problem b/c I checked by sending a request manually using telnet. How exactly did you check it? [2005-10-10 22:38:24] AlReece45 at yahoo dot com Sorry if this posts twice... What I meant is that is was set before. And phpinfo() does not it either. I checked both there and using the code: ?php var_export($_SERVER); ? to check to see if I was just using the wrong index or just a documentation bug. Nothing in the $_SERVER variable, or $GLOBALS (checked it too) has anything with gzip in it. It isn't a browser problem b/c I checked by sending a request manually using telnet. [2005-10-10 22:30:38] [EMAIL PROTECTED] While it was working before it was working before *what*? And what your phpinfo() tells about it? Or there is no Accept-Encoding too? [2005-10-10 22:22:16] AlReece45 at yahoo dot com Description: While it was working before, the $_SERVER['HTTP_ACCEPT_ENCODING'] is not longer being set. I'm using Apache 2 with the PHP Module. Note this is not a problem of Content-Encoding being sent Reproduce code: --- ?php var_export($_SERVER['HTTP_ACCEPT_ENCODING']); ? Expected result: 'gzip, deflate' Actual result: -- NULL -- Edit this bug report at http://bugs.php.net/?id=34820edit=1