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

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


Now -n will ignore all ini files.



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

[2003-02-03 06:04:40] [EMAIL PROTECTED]

reopening as closed by accident

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

[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]

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/22011

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

Reply via email to