Bug #66978 [NEW]: $_SERVER['REQUEST_URI'] does not contain the request's complete URI

From: Date: Fri, 28 Mar 2014 22:45:46 +0000
Subject: Bug #66978 [NEW]: $_SERVER['REQUEST_URI'] does not contain the request's complete URI
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184957@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 #55780, 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=66978&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66978&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66978&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66978&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66978&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66978&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66978&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66978&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66978&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66978&r=support Expected behavior: https://bugs.php.net/fix.php?id=66978&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66978&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66978&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66978&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66978&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66978&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66978&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66978&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66978&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66978&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66978&r=mysqlcfg

« previous php.bugs (#184957) next »