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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to