#22051 [Opn->NoF]: Two level relative paths broken
| From: | iliaa@php.net | Date: | Tue, 11 Feb 2003 23:40:28 +0000 |
| Subject: | #22051 [Opn->NoF]: Two level relative paths broken | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32840@lists.php.net to get a copy of this message | ||
ID: 22051
Updated by: iliaa@php.net
Reported By: chris@support.wso.net
-Status: Open
+Status: No Feedback
Bug Type: Directory function related
Operating System: BSDI 4.x
PHP Version: 4CVS-2003-02-04 (stable)
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
I am unable to replicate the bug using the latest PHP in both CLI or
Apache sapis.
Previous Comments:
------------------------------------------------------------------------
[2003-02-04 12:42:05] chris@support.wso.net
Build line:
./configure --with-mysql=/usr/local --with-apache=../apache_1.3.27
--with-config-file-path=/etc --enable-ftp --enable-trans-sid
All of our include statements throughout about 15 scripts use two
levels of path levels "../.." for ease of implementation across
separate web servers.
Test is here:
http://norgate.wso.net/datafeed/test.php
PHP seems to have some serious path parsing issues when run from Apache
1.3.27 as a compiled module.
This is the entire script souce of the above URL:
<?
echo "Current dir is<br>";
echo getcwd() . "<br>";
echo '<hr>';
echo 'chdir("..");<br>';
chdir("..");
echo getcwd() . "<br>";
echo '<hr>';
echo 'chdir ("datafeed/onlinestatus");<br>';
chdir ("datafeed/onlinestatus");
echo getcwd() . "<br>";
echo '<hr>';
?>
As you can see, fairly straightforward but it seems to barf when you
attempt more than one level of directory changes in a path.
We've also tried the regular 4.3.0 build, same issue.
Our previous build was 4.1.2 as a CGI and it didn't
have this problem.
Any help would be appreciated. Thank you!
-Chris
WSO
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22051&edit=1