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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Dec 02 03:00:02 2025 UTC