Bug #54955 [NEW]: FastCGI doesn't recognize Windows relative paths

From: Date: Mon, 30 May 2011 20:08:31 +0000
Subject: Bug #54955 [NEW]: FastCGI doesn't recognize Windows relative paths
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-161056@lists.php.net to get a copy of this message
From:             
Operating system: Windows 7 64bits SP1
PHP version:      5.3.6
Package:          CGI related
Bug Type:         Bug
Bug description:FastCGI doesn't recognize Windows relative paths

Description:
------------
I have configured my webserver (nginx) to have its document root out of its

working path in "..\files" (please, note the two dots). When I request
static 
files, it serves them without any problem. Anyway If I request a PHP file,
the 
request it's not served because php-cgi.exe running as the fastCGI server
al 
127.0.0.1:9000 returns an error 400 code.

If I user absolute paths it works. Also, if I move the "..\files" folder to

"./files" (please, note the only one dot) and I change the document root to

reflect that new relative path.

So It looks that relative paths with two dots are not getting resolved by
php-
cgi.exe as fastCGI server.


-- 
Edit bug report at http://bugs.php.net/bug.php?id=54955&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=54955&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=54955&r=trysnapshot53
Try a snapshot (trunk):              http://bugs.php.net/fix.php?id=54955&r=trysnapshottrunk
Fixed in SVN:                        http://bugs.php.net/fix.php?id=54955&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54955&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=54955&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=54955&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=54955&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=54955&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=54955&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=54955&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=54955&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=54955&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=54955&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54955&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54955&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=54955&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=54955&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=54955&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=54955&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=54955&r=mysqlcfg



Thread (7 messages)

« previous php.bugs (#161056) next »