php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43478 PHP_SELF creates double path entry
Submitted: 2007-12-02 16:51 UTC Modified: 2007-12-03 10:50 UTC
From: uni_koeln at arcor dot de Assigned:
Status: Closed Package: CGI/CLI related
PHP Version: 5.2.5 OS: XP
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: uni_koeln at arcor dot de
New email:
PHP Version: OS:

 

 [2007-12-02 16:51 UTC] uni_koeln at arcor dot de
Description:
------------
Seems like the same as in http://bugs.php.net/bug.php?id=43247 or http://bugs.php.net/bug.php?id=42699

No idea, why this topics (#42699, #43247) are closed. It seems that this bug still appears not only with Abyss Webserver. It appears in connection with other servers too i.e. Q'n'E <http://www.pablosoftwaresolutions.com/>, where the script is strictly parsed by the php interpreter.

This bug appears since 5.2.4 and is not corrected yet. I also tried the CVS snapshot http://snaps.php.net/win32/php5.3-win32-latest.zip

Kind regards,
Karl

Reproduce code:
---------------
<?php
echo $_SERVER['PHP_SELF'];
?>

Expected result:
----------------
/testself/testself.php

Actual result:
--------------
/testself/testself.php/testself/testself.php

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-03 08:48 UTC] uni_koeln at arcor dot de
Perhaps I posted this too quickly. Now I found out, that the directive cgi.fix_pathinfo is 1 by default. So it seems, that al I have to do is to set cgi.fix_pathinfo = 0 in php.ini.

Kind regards
Karl
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 23:01:29 2024 UTC