DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=40496>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40496 Summary: PHP5 incompatibility since v2.x Product: Apache httpd-2 Version: 2.2.2 Platform: Other URL: http://bugs.php.net/bug.php?id=28327&thanks=3 OS/Version: Windows XP Status: UNCONFIRMED Severity: critical Priority: P2 Component: Platform AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] The PHP-commands chdir(".") and chdir("..") seem to switch directory relative to Apache's application-root, rather than PHP's current working directory. This occurs with any PHP5-release or snapshot, under any Apache release 2.0.x or 2.2.x, both as module and as CGI-binary. 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() . "<br />"; chdir("test"); echo getcwd() . "<br />"; chdir(".."); echo getcwd() . "<br />"; 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... Forgot to mention, I'm using Windows XP SP2. So it is, apparently, not specific to Windows NT. 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. With the same PHP-release and "php5apache.dll" under Apache 1.x.x, there is no problem. I don't have the technical insight to say whether this is a bug in Apache, in the php5apache-DLLs, or in PHP itself. But having confirmed that neither the DLLs or the CGI-binary work properly under any Apache release after 2.0, and that binaries from the same PHP-build work fine under Apache 1.x, it seems likely to be Apache. If someone could please de/confirm this, please - thank you. PHP's bugtracker seems to have canned this bug, without comment, over a year ago. I wonder if anyone ever looked into it. The latest releases of phpMyAdmin, for example, rely on chdir("..") - it would be nice if these scripts could be used "out of the box" with current Apache and PHP releases under Windows... -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
