ID:               22011
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Closed
+Status:           Open
 Bug Type:         Documentation problem
 Operating System: linux RH 8.0
 PHP Version:      4.3.0
 New Comment:

reopening as closed by accident


Previous Comments:
------------------------------------------------------------------------

[2003-02-03 05:59:22] [EMAIL PROTECTED]

To clarify my first submission:
-n switch passed to the CLI scans this additional ini file(s) and uses
the values found inside.

easy to reproduce:
let config-file-path be /etc
let config-file-scan-dir be /opt/php
origin /etc/php.ini sets register_globals off
/opt/php/php.ini sets register_globals on

php -n -r  'echo  ini_get('register_globals') . "\n";'
php -r  'echo  ini_get('register_globals') . "\n";'

yields the same results, shown that additional ini files are scanned,
parsed and applied.
Therefore it seems that -n has the only effect, that the php.ini in
config-file-path is ignored, but additional ini-files are parsed and
their values applied.

Again: is this expected behaviour?

Regards
Friedhelm Betz

------------------------------------------------------------------------

[2003-02-03 05:12:54] [EMAIL PROTECTED]

-n switch should also ignore ini files defined
--with-config-file-scan-dir. Re-opening.

------------------------------------------------------------------------

[2003-02-02 19:07:49] [EMAIL PROTECTED]

This switch is not documented so far and if this is not a bug but
expected behaviour let it be at least a doc problem;-)
Regards
Friedhelm Betz

------------------------------------------------------------------------

[2003-02-02 18:51:40] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Please ask such questions on [EMAIL PROTECTED]

------------------------------------------------------------------------

[2003-02-02 08:13:58] [EMAIL PROTECTED]

Hi,

if php CLI was configured:
--with-config-file-path=/etc
--with-config-file-scan-dir=/some/directory
-n switch passed to the CLI scans this additional ini file(s).

php -h says
-n No php.ini file will be used

Does this "No" exclude additional ini-files?


PHP 4.3.0 (cli)

PHP API => 20020918
PHP Extension => 20020429
Zend Extension => 20021010
Debug Build => no
Thread Safety => disabled
Registered PHP Streams => php, http, ftp, https, ftps, compress.zlib

Regards
Friedhelm Betz

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22011&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to