Bug #67814 [Com]: Loading of additional user_ini files not reported in phpinfo output
| From: | php at vnagara dot com | Date: | Sun, 01 May 2022 09:31:46 +0000 |
| Subject: | Bug #67814 [Com]: Loading of additional user_ini files not reported in phpinfo output | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-241354@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67814&edit=1
ID: 67814
Comment by: php at vnagara dot com
Reported by: crdillon+php at gmail dot com
Summary: Loading of additional user_ini files not reported in
phpinfo output
Status: Open
Type: Bug
Package: *Configuration Issues
Operating System: CentOS 6.5
PHP Version: 5.5.15
Block user comment: N
Private report: N
New Comment:
In version 8.1.5 still exist bug. User.ini config is not reported loaded.
Previous Comments:
------------------------------------------------------------------------
[2014-08-09 16:47:32] 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>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67814&edit=1