#22011 [Opn->Csd]: php -n does not work as expected

From: Date: Mon, 03 Feb 2003 11:59:23 +0000
Subject: #22011 [Opn->Csd]: php -n does not work as expected
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969351505@lists.php.net to get a copy of this message
ID: 22011 User updated by: holliwell@gmx.net Reported By: holliwell@gmx.net -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: linux RH 8.0 PHP Version: 4.3.0 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2003-02-03 05:12:54] edink@php.net -n switch should also ignore ini files defined --with-config-file-scan-dir. Re-opening. ------------------------------------------------------------------------ [2003-02-02 19:07:49] holliwell@gmx.net 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] helly@php.net 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 php-general@lists.php.net. ------------------------------------------------------------------------ [2003-02-02 08:13:58] holliwell@gmx.net 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

« previous php.doc (#969351505) next »