#42523 [Fbk->Opn]: PHP_SELF duplicates path

From: Date: Mon, 03 Sep 2007 17:44:31 +0000
Subject: #42523 [Fbk->Opn]: PHP_SELF duplicates path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-117058@lists.php.net to get a copy of this message
 ID:               42523
 User updated by:  tkeese at yahoo dot com
 Reported By:      tkeese at yahoo dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         CGI related
 Operating System: WinXP/IIS 5.1
 PHP Version:      5.2.4
 New Comment:

I am using the default CGI configuration from the Win32 installer. 

cgi.check_shebang_line	1	1
cgi.fix_pathinfo	0	0
cgi.force_redirect	0	0
cgi.nph	0	0
cgi.redirect_status_env	no value	no value
cgi.rfc2616_headers	0	0
fastcgi.impersonate	0	0
fastcgi.logging	1	1

From phpinfo() output (5.2.4):
_SERVER["PHP_SELF"]	/baseapp/test/p.php/baseapp/test/p.php

From phpinfo() output (5.2.3) using same configuration as above:
_SERVER["PHP_SELF"]	/baseapp/test/p.php


Previous Comments:
------------------------------------------------------------------------

[2007-09-03 17:41:28] w dot ashcroft at redfoxuk dot com

Hello,
Got the exact same problem here, using standard CGI with these
settings:

cgi.fix_pathinfo = 1
cgi.force_redirect = 0
fastcgi.impersonate = 1

cgi.fix_pathinfo = 0 does not fix the problem.

Problem did not exist in 5.2.3 and is causing lots of headaches for our
customers on our servers.

------------------------------------------------------------------------

[2007-09-03 08:20:31] jani@php.net

How have you configure PHP in IIS? What values do your cgi.* directives
have? What query causes this?

------------------------------------------------------------------------

[2007-09-02 23:25:12] tkeese at yahoo dot com

Description:
------------
Path appears to be duplicated.

echo $_SERVER['PHP_SELF'];

Output:
/baseapp/myapp/progs/p.php/baseapp/myapp/progs/p.php

Expected:
/baseapp/myapp/progs/p.php



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42523&edit=1


Thread (14 messages)

« previous php.bugs (#117058) next »