From:             
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".

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=55780&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=55780&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=55780&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=55780&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=55780&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55780&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=55780&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=55780&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=55780&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=55780&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=55780&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=55780&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=55780&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=55780&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=55780&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=55780&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55780&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=55780&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=55780&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=55780&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=55780&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=55780&r=mysqlcfg

Reply via email to