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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: srspam+phpnet at icloud dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 26 18:01:31 2024 UTC