#29948 [Opn->Bgs]: SCRIPT_NAME sometimes contains wrong info
| From: | sniper@php.net | Date: | Wed, 15 Sep 2004 13:23:58 +0000 |
| Subject: | #29948 [Opn->Bgs]: SCRIPT_NAME sometimes contains wrong info | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-66208@lists.php.net to get a copy of this message | ||
ID: 29948
Updated by: sniper@php.net
Reported By: clehardy at betablue dot net
-Status: Open
+Status: Bogus
-Bug Type: Variables related
+Bug Type: Apache2 related
Operating System: Windows XP Home
PHP Version: 4.3.8
New Comment:
PHP sets it to whatever Apache tells it is. Not PHP bug.
Previous Comments:
------------------------------------------------------------------------
[2004-09-02 11:44:06] clehardy at betablue dot net
Description:
------------
If you add additional path information after the script name (as in
www.domain.com/script.php/passed/arguments/) and the information is a
URL (as in www.domain.com/script.php/http://www.php.net/), then
$_SERVER['SCRIPT_NAME'] will contain '/script.php/http:'.
This has only been tested with Apache 2.0.50 and PHP 4.3.8 in sapi mode
(not CGI).
In my test Linux enviroment, $_SERVER['SCRIPT_NAME'] will contain
'/script.php' as expected, but that seems to be because the URL is
translated to 'www.domain.com/script.php/http:/www.php.net/' (notice
only one slash after http: instead of two).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29948&edit=1