php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29948 SCRIPT_NAME sometimes contains wrong info
Submitted: 2004-09-02 11:44 UTC Modified: 2004-09-15 15:23 UTC
From: clehardy at betablue dot net Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.8 OS: Windows XP Home
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: clehardy at betablue dot net
New email:
PHP Version: OS:

 

 [2004-09-02 11:44 UTC] 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).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-15 15:23 UTC] sniper@php.net
PHP sets it to whatever Apache tells it is. Not PHP bug.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 07:01:31 2024 UTC