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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
17 + 40 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Mar 19 06:01:30 2024 UTC