Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 76521 invoked from network); 13 Sep 2006 13:24:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2006 13:24:59 -0000 Received: (qmail 1088 invoked by uid 500); 13 Sep 2006 13:24:58 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 1055 invoked by uid 500); 13 Sep 2006 13:24:57 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 1042 invoked by uid 99); 13 Sep 2006 13:24:57 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2006 06:24:57 -0700 X-ASF-Spam-Status: No, hits=-9.8 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received: from ([209.237.227.198:39697] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 44/43-09463-8B608054 for ; Wed, 13 Sep 2006 06:25:12 -0700 Received: by brutus.apache.org (Postfix, from userid 33) id EB1A771434F; Wed, 13 Sep 2006 13:21:30 +0000 (GMT) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: DO NOT REPLY [Bug 40496] New: - PHP5 incompatibility since v2.x Message-ID: X-Bugzilla-Reason: AssignedTo Date: Wed, 13 Sep 2006 13:21:30 +0000 (GMT) X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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: bugs@httpd.apache.org ReportedBy: ras@fyn.dk 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() . "
"; 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... 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: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org