Re: Bug #20887 (Two separate issues)
| From: | Moriyoshi Koizumi | Date: | Thu, 12 Dec 2002 20:24:57 +0000 |
| Subject: | Re: Bug #20887 (Two separate issues) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92431@lists.php.net to get a copy of this message | ||
Hi,
> The original complaint in bug 20887 was that the CLI version was picking
> up ini files in the wrong places. The patch I suggested last night does
> address that problem (albiet not correctly, see below).
??? The original report goes:
If /php.ini exists, that one is used no matter what PHPRC env is set
or compiled in when starting up apache from a SysV script. Is it
a bug in php, or could it be the Mandrake Linux 9.0 system?
> the system checks the PATH variable to find an executable and run PHP.
> When php_ini.c runs, it finds a 'binary_location' of "php" (inaccurate!
> Our CWD is ~ and ~/php does not exist) Neither my patch nor Moriyoshi's
> fixes this.
My patch would give the accurate location of the binary being executed
since it doesn't rely on argv[0].
Moriyoshi