#22051 [Fbk->NoF]: Two level relative paths broken
| From: | sniper@php.net | Date: | Thu, 20 Feb 2003 14:06:35 +0000 |
| Subject: | #22051 [Fbk->NoF]: Two level relative paths broken | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33700@lists.php.net to get a copy of this message | ||
ID: 22051
Updated by: sniper@php.net
Reported By: chris at support dot wso dot net
-Status: Feedback
+Status: No Feedback
Bug Type: Directory function related
Operating System: BSDI 4.x
PHP Version: 4CVS-2003-02-04 (stable)
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2003-02-11 17:41:47] iliaa@php.net
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
oops, set the wrong bug status.
------------------------------------------------------------------------
[2003-02-11 17:40:27] iliaa@php.net
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.
------------------------------------------------------------------------
[2003-02-04 12:42:05] chris at support dot wso dot 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