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: 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:
---
Expected result:
'gzip, deflate'
Actual result:
--
NULL
--
Edit this bug report at http://bugs.php.net/?id=34820&edit=1