php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67814 Loading of additional user_ini files not reported in phpinfo output
Submitted: 2014-08-09 16:47 UTC Modified: -
Votes:5
Avg. Score:3.8 ± 1.0
Reproduced:5 of 5 (100.0%)
Same Version:1 (20.0%)
Same OS:2 (40.0%)
From: crdillon+php at gmail dot com Assigned:
Status: Open Package: *Configuration Issues
PHP Version: 5.5.15 OS: CentOS 6.5
Private report: No CVE-ID: None
 [2014-08-09 16:47 UTC] crdillon+php at gmail dot com
Description:
------------
If an additional configuration file is used that is defined by user_ini.filename, ".user.ini" by default, the fact that it is loaded is not reported anywhere in phpinfo() output.

Test script:
---------------
In an otherwise default configuration, making a custom configuration change via a user_ini file proves that the user_ini file is being loaded and parsed correctly:

[/home/example/public_html]# cat .user.ini
error_log = /home/example/php_errors.log

[/home/example/public_html]# cat phpinfo.php
<?php
phpinfo();
?>

# curl -s http://example.tld/phpinfo.php | grep error_log
<tr><td class="e">error_log</td><td class="v">/home/example/php_errors.log</td><td class="v">error_log</td></tr>


Expected result:
----------------
 
These user_ini files should be listed under "Additional .ini files parsed" of phpinfo() output when they exist and are loaded.


Actual result:
--------------
"Additional .ini files parsed" is currently not reporting the existence of these user_ini files:

[/home/example/public_html]# curl -s http://example.tld/phpinfo.php | grep "Additional .ini files parsed"
<tr><td class="e">Additional .ini files parsed </td><td class="v">(none) </td></tr>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2022-05-01 09:31 UTC] php at vnagara dot com
In version 8.1.5 still exist bug. User.ini config is not reported loaded.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC