Bug #67298 [NEW]: $_SERVER['REQUEST_URI'] does not contain the request's complete URI
| From: | chealer at gmail dot com | Date: | Sun, 18 May 2014 00:51:57 +0000 |
| Subject: | Bug #67298 [NEW]: $_SERVER['REQUEST_URI'] does not contain the request's complete URI | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-185847@lists.php.net to get a copy of this message | ||
From: chealer at gmail dot com
Operating system:
PHP version: Irrelevant
Package: *General Issues
Bug Type: Bug
Bug description:$_SERVER['REQUEST_URI'] does not contain the request's complete URI
Description:
------------
According to http://www.php.net/manual/en/reserved.variables.server.php
the REQUEST_URI entry of $_SERVER contains "The URI which was given in
order to access this page".
As reported in #66978, this is not the case, as the example given just
after shows: "for instance, '/index.html'". Actually, REQUEST_URI
contains a URI reference.
This bug exists since as far as I can remember. At this point, it is
probably a bad idea to simply fix. This should probably be treated as a
documentation bug, and just cause the $_SERVER documentation to fix the
entry description, adding a warning about the name.
However, having the actual request URI would be useful too, be it
through a new "ACTUAL_REQUEST_URI" entry, a function, or something.
Note: this bug is not completely PHP-specific.
http://labs.apache.org/webarch/uri/rfc/rfc3986.html#hierarchical
gives a
historical perspective on URI/URL terminology.
--
Edit bug report at https://bugs.php.net/bug.php?id=67298&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67298&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67298&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67298&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=67298&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=67298&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=67298&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=67298&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=67298&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=67298&r=support
Expected behavior: https://bugs.php.net/fix.php?id=67298&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=67298&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=67298&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=67298&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67298&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=67298&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=67298&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=67298&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=67298&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=67298&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=67298&r=mysqlcfg