|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77475 Order in which conf files are searched for is incomplete
Submitted: 2019-01-16 23:21 UTC Modified: -
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: korikulum at net dot hr Assigned:
Status: Open Package: *Configuration Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-01-16 23:21 UTC] korikulum at net dot hr
The documentation states the following:

php.ini is searched for in these locations (in order):
◦  Current working directory (except CLI).

This however seems to be incomplete.

According to the source code, all SAPIs that have php_ini_ignore_cwd set to 1 ignore the cwd

There are currently three SAPIs that have that:

1) CLI
2) FPM
3) phpdbg

Also, it might be good to explain what exactly is meant by "Current working directory", I wasn't really sure, that why I went to check the source code in the first place.


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Aug 06 03:01:24 2021 UTC