#45794 [Bgs]: HTTP headers rendered differently in PHP than Apache rewrite mod likes them
ID: 45794
User updated by: tarag956 at gmail dot com
Reported By: tarag956 at gmail dot com
Status: Bogus
Bug Type: *Web Server problem
Operating System: nix
PHP Version: 5.2.6
New Comment:
The form cut off the URL of the screenshot then made a link out of the
decapitated URL. It needs to be all on one line to be viewed.
Previous Comments:
------------------------------------------------------------------------
[2008-08-12 15:20:27] tarag956 at gmail dot com
Also your first paragraph was an obvious form letter, and your second
paragraph was unrelated so I'm no even sure if you understood what I
initially said.
Also as for flagging bugs bogus, here's a screenshot unrelated to this
bug report but related to falsely flagging bugs a bogus:
http://images.encyclopediadramatica.com/images/c/c9/Why_PHP_remains_slow.png
------------------------------------------------------------------------
[2008-08-12 15:17:24] tarag956 at gmail dot com
Those links you gave were worthless and unrelated to the issue.
I've already read through the manual fully.
Are you claiming that somewhere hidden PHP actually can get the same
exact style of headers ad mod-rewrite? I have checked fully and there
is no such thing.
Or are you claiming this is something PHP knows about and "won't fix"?
You never explicitly stated your reason for decaring the bug "bogus".
------------------------------------------------------------------------
[2008-08-12 13:32:22] lbarnaud@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
HTTP headers and other variables follows the CGI specification:
http://hoohoo.ncsa.uiuc.edu/cgi/env.html
------------------------------------------------------------------------
[2008-08-12 06:08:40] tarag956 at gmail dot com
Description:
------------
HTTP headers rendered differently in PHP than Apache rewrite mod likes
them
For instance...
PHP renders a header this way (from the $_SERVER associated array):
HTTP_X_MOZ
But apache rewrite mod likes it:
HTTP:X-MOZ
I couldn't find any previous reports on this. But basically, PHP needs
some way for its HTTP headers to end up looking the same way that
Apache's mod-rewrite likes them.
Other examples...
Apache likes them like:
HTTP:X-FORWARDED-FOR
REMOTE_ADDR
HTTP:CLIENT-IP
REQUEST_METHOD
But PHP usually converts all "-" to "_" and converts all ":" to
"_" and
sometimes adds "HTTP_" in front of things.
Maybe this is a feature request, but it would be nice if PHP's HTTP
header variables could go be the exact names that HTTP's rewrite mod
like them as.
Reproduce code:
---------------
..
Expected result:
----------------
..
Actual result:
--------------
..
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45794&edit=1
Thread (7 messages)