|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #44105 $_SERVER['REDIRECT_URL'] content changed
Submitted: 2008-02-12 13:19 UTC Modified: 2008-11-07 12:18 UTC
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: michaells at cytainment dot de Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
38 + 39 = ?
Subscribe to this entry?

 [2008-02-12 13:19 UTC] michaells at cytainment dot de
Since version 5.2.5 the value of $_SERVER['REDIRECT_URL'] contained the absolute path requested (without protocol, host and domain). E.g. working with .htaccess setting ErrorDocument 404 to index.php and checking in the PHP-script, how to handle nonexisting call ( if( preg_match('/vcard\.html$/',$_SERVER['REDIRECT_URL']))...) worked fluently. Since 5.2.5 the content of this key is now the absolute path of the script redirected to.
Maybe behaviour changed as wanted, but for sure, it's not documented.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-07 12:18 UTC]
This variable is set by Apache, not PHP.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Oct 24 02:03:34 2021 UTC