ID:               22051
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           No Feedback
+Status:           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

oops, set the wrong bug status.


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

[2003-02-11 17:40:27] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to