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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 15:01:36 2025 UTC