#44105 [Opn->Bgs]: $_SERVER['REDIRECT_URL'] content changed

From: Date: Fri, 07 Nov 2008 12:18:52 +0000
Subject: #44105 [Opn->Bgs]: $_SERVER['REDIRECT_URL'] content changed
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1437@lists.php.net to get a copy of this message
ID: 44105 Updated by: vrana@php.net Reported By: michaells at cytainment dot de -Status: Open +Status: Bogus Bug Type: Documentation problem PHP Version: Irrelevant New Comment: This variable is set by Apache, not PHP. Previous Comments: ------------------------------------------------------------------------ [2008-02-12 13:19:21] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44105&edit=1

« previous php.doc.bugs (#1437) next »