#19552 [Opn->Bgs]: path is always where php was compiled
| From: | jmoore@php.net | Date: | Tue, 24 Sep 2002 20:56:14 +0000 |
| Subject: | #19552 [Opn->Bgs]: path is always where php was compiled | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-20231@lists.php.net to get a copy of this message | ||
ID: 19552
Updated by: jmoore@php.net
Reported By: sproctor@ccs.neu.edu
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: linux
PHP Version: 4.2.3
New Comment:
This might be for one of two reasons, this was the dir you started
apache from, or it might be a bug in apache2. I cannot see how this bug
comes from PHP.
The variables' and the values for them are taken directly from the
server or environment variables provided to PHP.
Bogusify.
- James
Previous Comments:
------------------------------------------------------------------------
[2002-09-24 15:27:12] sproctor@ccs.neu.edu
I tried the latest version. now $_ENV['PWD'] is just
/home/sproctor/php4-200209240900. I imagine it's an apache2 issue
because that's the only weird thing I'm doing. apache2 works fine on
our server for everything else. I'll try building it as a CGI and see
if that works.
------------------------------------------------------------------------
[2002-09-23 05:27:48] sander@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-09-22 16:53:11] sproctor@ccs.neu.edu
$_ENV['PWD'] always returns /home/sproctor/php-4.2.3 (where php was
compiled). I expect it to be /var/www/reliance/pn (where the script is
run from). I compiled php with apxs2 and apache 2.0.40.
It's not just the variable that's wrong, but doing something like
include "filename" will search in /home/sproctor/php-4.2.3, for
clarity.
Thanks!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19552&edit=1