From: [EMAIL PROTECTED] Operating system: BSDI 4.x PHP version: 4CVS-2003-02-04 (stable) PHP Bug Type: Directory function related Bug description: Two level relative paths broken
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 bug report at http://bugs.php.net/?id=22051&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22051&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22051&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22051&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22051&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22051&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22051&r=support Expected behavior: http://bugs.php.net/fix.php?id=22051&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22051&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22051&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22051&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22051&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22051&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22051&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22051&r=gnused
