Re: Critical Bug #20887
| From: | Edin Kadribasic | Date: | Thu, 12 Dec 2002 11:04:54 +0000 |
| Subject: | Re: Critical Bug #20887 | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92402@lists.php.net to get a copy of this message | ||
> You are right. I verified Apache changes the cwd to / unless it's
been
> launched in single process mode.
>
> And I found results could be different by cases, using DSO or
using CGI
> executable. When you run your script with CGI executable and
php.ini is
> also present in that directory, the PHP binary tries to read that
one as
> mod_cgi tries to chdir to where the script is put.
> I'm not sure, but this appears to imply some security issues?
At the time CLI was introduced I argued to remove . from php.ini
search path, but that was not accepted because some people
apparently use this feature for having different configurations for
different virtual hosts.
Therefore . was removed only from CLI's php.ini search path.
Edin