|  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:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: korikulum at net dot hr Assigned:
Status: Open Package: *Configuration Issues
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.
Bug Type:
From: korikulum at net dot hr
New email:
PHP Version: OS:


 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 13 20:01:28 2024 UTC