From:             phyre at rogers dot com
Operating system: Linux
PHP version:      4.3.2
PHP Bug Type:     Feature/Change Request
Bug description:  php.ini location different for CLI

Description:
------------
So, as many people I'm sure do, I require much different options (ie: safe
mode, etc) for running under my web server than running from the command
line, yet I can only choose one ini file.  Various add-ons such as
ZendDebugger I don't like starting up from the CLI.

  I assume it wouldn't be hard to add a --with-cli-config-file-path which
works for the CLI only?

I place php.ini in my apache config directory, which has restrictive
rights.  Hence, an end user can't load it.  So PHP needs to be compiled in
two pieces (I need to then make another build and ONLY install the CLI).

  Seems like this could be a simple fix and it seems to make sense.  By
default, it should point to the normal config path
(--with-config-file-path).




-- 
Edit bug report at http://bugs.php.net/?id=24657&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24657&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24657&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24657&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24657&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24657&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24657&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24657&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24657&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24657&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24657&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24657&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24657&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24657&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24657&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24657&r=gnused

Reply via email to