php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77893 Documentation for `-n` option is incomplete
Submitted: 2019-04-15 09:36 UTC Modified: 2020-12-23 17:17 UTC
From: srspam+phpnet at icloud dot com Assigned:
Status: Open Package: PHP options/info functions
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2019-04-15 09:36 UTC] srspam+phpnet at icloud dot com
Description:
------------
The `-n` option for the CLI and FPM SAPI's is documented as simply:

    No php.ini file will be used

When used alone, this is correct, however I believe the true functionality would be better represented by a statement similar to the following:

    No default php.ini or additional configuration files (set by the --with-config-file-scan-dir configure option at build time or the PHP_INI_SCAN_DIR environment variable) will be loaded. Configuration files specified by the `-c` option *will* still be loaded.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-04-17 10:44 UTC] cmb@php.net
-Type: Documentation Problem +Type: Bug -Package: Documentation problem +Package: *General Issues
 [2019-04-17 10:44 UTC] cmb@php.net
Apparently, you are referring to the output of `php -h` shown in
the manual[1].  While this is not quite up to date, it certainly
wouldn't make sense to modify it arbitrarily.  Instead the output
of `php -h` should be changed in the first place.

[1] <https://www.php.net/manual/en/features.commandline.options.php>
 [2019-04-17 10:50 UTC] srspam+phpnet at icloud dot com
Apologies for the incorrect category/type - I guess I assumed information in the manpage/`php -h` output (which is where I saw it first, not the online docs) came under 'documentation'.

Thanks for looking at this!
 [2020-12-23 17:17 UTC] cmb@php.net
-Package: *General Issues +Package: PHP options/info functions
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 08:01:28 2024 UTC