#38820 [Fbk->Opn]: chdir(".") and chdir("..") don't work with Apache 2.0+
ID: 38820 User updated by: ras at fyn dot dk Reported By: ras at fyn dot dk -Status: Feedback +Status: Open Bug Type: Directory function related Operating System: Win XP SP2 PHP Version: 5.1.6 New Comment: Installed under a clean Apache 2.2.3, and it worked! Thank you for your fast response! :) Should I change the status of this bug, or will an admin do that? Previous Comments: [2006-09-26 17:30:34] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip [2006-09-26 06:19:26] ras at fyn dot dk No, it does not reproduce on Linux, as said, the bug appears to be specific to the Windows port. [2006-09-25 13:04:23] [EMAIL PROTECTED] Not reproducible on Linux with Apache2.0.55 worker/prefork. [2006-09-14 11:21:56] ras at fyn dot dk Tony, as said - I already tried the current snapshot, downloaded the latest development release yesterday. Unless it was fixed and updated today, I'm sorry, but I don't have time to uninstall, reinstall and reconfigure Apache and PHP again just now. My current Apache 1.3 installation works just fine for me - I only use the Windows release for testing and development on my workstation... [2006-09-14 08:50:01] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/38820 -- Edit this bug report at http://bugs.php.net/?id=38820&edit=1
#38820 [Opn]: chdir(".") and chdir("..") don't work with Apache 2.0+
ID: 38820 User updated by: ras at fyn dot dk Reported By: ras at fyn dot dk Status: Open Bug Type: Directory function related Operating System: Win XP SP2 PHP Version: 5.1.6 New Comment: No, it does not reproduce on Linux, as said, the bug appears to be specific to the Windows port. Previous Comments: [2006-09-25 13:04:23] [EMAIL PROTECTED] Not reproducible on Linux with Apache2.0.55 worker/prefork. [2006-09-14 11:21:56] ras at fyn dot dk Tony, as said - I already tried the current snapshot, downloaded the latest development release yesterday. Unless it was fixed and updated today, I'm sorry, but I don't have time to uninstall, reinstall and reconfigure Apache and PHP again just now. My current Apache 1.3 installation works just fine for me - I only use the Windows release for testing and development on my workstation... [2006-09-14 08:50:01] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip [2006-09-14 06:40:02] ras at fyn dot dk Description: When using chdir() with relative folders (e.g. "." and ".."), under Apache 2.0 or newer, using either the php5 module or the CGI binary, the function changes the current directory to the Apache application folder, rather than a folder relative to the current folder. Tested with PHP 5.1.6, and current 5.2.x-dev, under Apache 2.2.3, 2.0.59 and 2.0.55 - all tested with both the php5 module and the CGI binary, all with same result. Bug appears to be specific to the Windows port of PHP. Apache 1.3.37 exhibits no similar problems. I filed this bug with Apache, but Ruediger Pluem at apache.org says that "this is clearly a PHP bug": http://issues.apache.org/bugzilla/show_bug.cgi?id=40496 Reproduce code: --- // create the "test" folder before running the script! echo getcwd() . ""; chdir("test"); echo getcwd() . ""; chdir(".."); echo getcwd() . ""; chdir(".."); echo getcwd(); Expected result: C:\Web C:\Web\test C:\Web C:\ Actual result: -- C:\Web C:\Web\test C:\Programmer\Apache Group C:\Programmer\Apache Group -- Edit this bug report at http://bugs.php.net/?id=38820&edit=1
#38820 [Fbk->Opn]: chdir(".") and chdir("..") don't work with Apache 2.0+
ID: 38820 User updated by: ras at fyn dot dk Reported By: ras at fyn dot dk -Status: Feedback +Status: Open Bug Type: Directory function related Operating System: Win XP SP2 PHP Version: 5.1.6 New Comment: Tony, as said - I already tried the current snapshot, downloaded the latest development release yesterday. Unless it was fixed and updated today, I'm sorry, but I don't have time to uninstall, reinstall and reconfigure Apache and PHP again just now. My current Apache 1.3 installation works just fine for me - I only use the Windows release for testing and development on my workstation... Previous Comments: [2006-09-14 08:50:01] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip [2006-09-14 06:40:02] ras at fyn dot dk Description: When using chdir() with relative folders (e.g. "." and ".."), under Apache 2.0 or newer, using either the php5 module or the CGI binary, the function changes the current directory to the Apache application folder, rather than a folder relative to the current folder. Tested with PHP 5.1.6, and current 5.2.x-dev, under Apache 2.2.3, 2.0.59 and 2.0.55 - all tested with both the php5 module and the CGI binary, all with same result. Bug appears to be specific to the Windows port of PHP. Apache 1.3.37 exhibits no similar problems. I filed this bug with Apache, but Ruediger Pluem at apache.org says that "this is clearly a PHP bug": http://issues.apache.org/bugzilla/show_bug.cgi?id=40496 Reproduce code: --- // create the "test" folder before running the script! echo getcwd() . ""; chdir("test"); echo getcwd() . ""; chdir(".."); echo getcwd() . ""; chdir(".."); echo getcwd(); Expected result: C:\Web C:\Web\test C:\Web C:\ Actual result: -- C:\Web C:\Web\test C:\Programmer\Apache Group C:\Programmer\Apache Group -- Edit this bug report at http://bugs.php.net/?id=38820&edit=1
#38820 [NEW]: chdir(".") and chdir("..") don't work with Apache 2.0+
From: ras at fyn dot dk Operating system: Win XP SP2 PHP version: 5.1.6 PHP Bug Type: Directory function related Bug description: chdir(".") and chdir("..") don't work with Apache 2.0+ Description: When using chdir() with relative folders (e.g. "." and ".."), under Apache 2.0 or newer, using either the php5 module or the CGI binary, the function changes the current directory to the Apache application folder, rather than a folder relative to the current folder. Tested with PHP 5.1.6, and current 5.2.x-dev, under Apache 2.2.3, 2.0.59 and 2.0.55 - all tested with both the php5 module and the CGI binary, all with same result. Bug appears to be specific to the Windows port of PHP. Apache 1.3.37 exhibits no similar problems. I filed this bug with Apache, but Ruediger Pluem at apache.org says that "this is clearly a PHP bug": http://issues.apache.org/bugzilla/show_bug.cgi?id=40496 Reproduce code: --- // create the "test" folder before running the script! echo getcwd() . ""; chdir("test"); echo getcwd() . ""; chdir(".."); echo getcwd() . ""; chdir(".."); echo getcwd(); Expected result: C:\Web C:\Web\test C:\Web C:\ Actual result: -- C:\Web C:\Web\test C:\Programmer\Apache Group C:\Programmer\Apache Group -- Edit bug report at http://bugs.php.net/?id=38820&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38820&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38820&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38820&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38820&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38820&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38820&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=38820&r=needscript Try newer version:http://bugs.php.net/fix.php?id=38820&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38820&r=support Expected behavior:http://bugs.php.net/fix.php?id=38820&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38820&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38820&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38820&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38820&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38820&r=dst IIS Stability:http://bugs.php.net/fix.php?id=38820&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38820&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38820&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38820&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=38820&r=mysqlcfg
#28327 [Com]: chdir("..") not working in PHP5 on WinNT4
ID: 28327 Comment by: ras at fyn dot dk Reported By: zajdee at seznam dot cz Status: No Feedback Bug Type: Directory function related Operating System: Windows NT4 PHP Version: 5CVS-2004-05-08 (dev) New Comment: Final note, I have just switched to an old Apache release, version 1.3.37, and this works without problems, using latest PHP release, version 5.1.6. I configured it to run with the "php5apache.dll" module, not the CGI. The problem seems to occur only with "php5apache2.dll" and "php5apache2_2.dll" under Apache 2.0.x and 2.2.x, respectively. I suppose this might be a bug in Apache, rather than in PHP? Previous Comments: -------- [2006-09-13 11:06:59] ras at fyn dot dk Forgot to mention, I'm using Windows XP SP2. So it is, apparently, not specific to Windows NT. ------------ [2006-09-13 11:04:34] ras at fyn dot dk I have tried installations from scratch, using all possible combinations of all of the following: - PHP 5.1.6 (latest release) - PHP 5.2.x-dev (latest snapshot) - Apache 2.2.3 (latest release) - Apache 2.0.59 (last stable 2.0 release) - Apache 2.0.55 That is, I've tried both versions of PHP under all three different Apaches. On all six combinations, I've tried configuring Apache to use both "php-cgi.exe", as well as the modules ("php5apache2.dll" and "php5apache2_2.dll", respetively). The test-script I've been using is as follows: echo getcwd() . ""; chdir("test"); echo getcwd() . ""; chdir(".."); echo getcwd() . ""; chdir(".."); echo getcwd(); I've created the folder "test" next to the "test.php" script. In all setups, I get the following output: C:\Web C:\Web\test C:\Programmer\Apache Group C:\Programmer\Apache Group I have configured "php.ini" and "httpd.conf" manually every time, on two occassions using a configuration file written by a friend. All with the same result. I have even tried downloading "WAMPServer" and one or two other out-of-the-box WAMP distributions, all with the same result - they don't work. I'm at my wits end - PHP5 under Apache2 simply does not seem to be an option for Windows users at this point... [2005-05-03 14:00:55] gemije at gmx dot net Is there a chance to fix this bug in near future? [2005-03-10 18:38:37] n dot s dot robson at open dot ac dot uk I've just tried the latest build 5.1.0-dev downloaded this afternoon, on an NT4 system, under IIS 4.0, and the bug is still present. This code Change dir up one level "; chdir ("../"); $dir = getcwd(); echo "CWD: $dir "; ?> gave this output CWD: E:\IIS_40\wwwroot\Test1\level2\level3\level4 Change dir up one level CWD: E:\IIS_40 [2005-02-23 01:00:06] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28327 -- Edit this bug report at http://bugs.php.net/?id=28327&edit=1
#28327 [Com]: chdir("..") not working in PHP5 on WinNT4
ID: 28327 Comment by: ras at fyn dot dk Reported By: zajdee at seznam dot cz Status: No Feedback Bug Type: Directory function related Operating System: Windows NT4 PHP Version: 5CVS-2004-05-08 (dev) New Comment: Forgot to mention, I'm using Windows XP SP2. So it is, apparently, not specific to Windows NT. Previous Comments: [2006-09-13 11:04:34] ras at fyn dot dk I have tried installations from scratch, using all possible combinations of all of the following: - PHP 5.1.6 (latest release) - PHP 5.2.x-dev (latest snapshot) - Apache 2.2.3 (latest release) - Apache 2.0.59 (last stable 2.0 release) - Apache 2.0.55 That is, I've tried both versions of PHP under all three different Apaches. On all six combinations, I've tried configuring Apache to use both "php-cgi.exe", as well as the modules ("php5apache2.dll" and "php5apache2_2.dll", respetively). The test-script I've been using is as follows: echo getcwd() . ""; chdir("test"); echo getcwd() . ""; chdir(".."); echo getcwd() . ""; chdir(".."); echo getcwd(); I've created the folder "test" next to the "test.php" script. In all setups, I get the following output: C:\Web C:\Web\test C:\Programmer\Apache Group C:\Programmer\Apache Group I have configured "php.ini" and "httpd.conf" manually every time, on two occassions using a configuration file written by a friend. All with the same result. I have even tried downloading "WAMPServer" and one or two other out-of-the-box WAMP distributions, all with the same result - they don't work. I'm at my wits end - PHP5 under Apache2 simply does not seem to be an option for Windows users at this point... [2005-05-03 14:00:55] gemije at gmx dot net Is there a chance to fix this bug in near future? [2005-03-10 18:38:37] n dot s dot robson at open dot ac dot uk I've just tried the latest build 5.1.0-dev downloaded this afternoon, on an NT4 system, under IIS 4.0, and the bug is still present. This code Change dir up one level "; chdir ("../"); $dir = getcwd(); echo "CWD: $dir "; ?> gave this output CWD: E:\IIS_40\wwwroot\Test1\level2\level3\level4 Change dir up one level CWD: E:\IIS_40 [2005-02-23 01:00:06] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2005-02-15 01:52:52] [EMAIL PROTECTED] We're still waiting for feedback.. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28327 -- Edit this bug report at http://bugs.php.net/?id=28327&edit=1
#28327 [Com]: chdir("..") not working in PHP5 on WinNT4
ID: 28327 Comment by: ras at fyn dot dk Reported By: zajdee at seznam dot cz Status: No Feedback Bug Type: Directory function related Operating System: Windows NT4 PHP Version: 5CVS-2004-05-08 (dev) New Comment: I have tried installations from scratch, using all possible combinations of all of the following: - PHP 5.1.6 (latest release) - PHP 5.2.x-dev (latest snapshot) - Apache 2.2.3 (latest release) - Apache 2.0.59 (last stable 2.0 release) - Apache 2.0.55 That is, I've tried both versions of PHP under all three different Apaches. On all six combinations, I've tried configuring Apache to use both "php-cgi.exe", as well as the modules ("php5apache2.dll" and "php5apache2_2.dll", respetively). The test-script I've been using is as follows: echo getcwd() . ""; chdir("test"); echo getcwd() . ""; chdir(".."); echo getcwd() . ""; chdir(".."); echo getcwd(); I've created the folder "test" next to the "test.php" script. In all setups, I get the following output: C:\Web C:\Web\test C:\Programmer\Apache Group C:\Programmer\Apache Group I have configured "php.ini" and "httpd.conf" manually every time, on two occassions using a configuration file written by a friend. All with the same result. I have even tried downloading "WAMPServer" and one or two other out-of-the-box WAMP distributions, all with the same result - they don't work. I'm at my wits end - PHP5 under Apache2 simply does not seem to be an option for Windows users at this point... Previous Comments: [2005-05-03 14:00:55] gemije at gmx dot net Is there a chance to fix this bug in near future? [2005-03-10 18:38:37] n dot s dot robson at open dot ac dot uk I've just tried the latest build 5.1.0-dev downloaded this afternoon, on an NT4 system, under IIS 4.0, and the bug is still present. This code Change dir up one level "; chdir ("../"); $dir = getcwd(); echo "CWD: $dir "; ?> gave this output CWD: E:\IIS_40\wwwroot\Test1\level2\level3\level4 Change dir up one level CWD: E:\IIS_40 [2005-02-23 01:00:06] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2005-02-15 01:52:52] [EMAIL PROTECTED] We're still waiting for feedback.. [2005-01-27 08:15:15] zajdee at seznam dot cz I am not using NT4 anywhere, but will try to set up a virtual machine in VMware to test it. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28327 -- Edit this bug report at http://bugs.php.net/?id=28327&edit=1