php.net |  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
Votes:2
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:
MUST BE VALID
Solve the problem:
43 - 43 = ?
Subscribe to this entry?

 
 [2008-02-12 13:19 UTC] michaells at cytainment dot de
Description:
------------
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-07 12:18 UTC] vrana@php.net
This variable is set by Apache, not PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC