php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #80890 phpinfo should make it clear what files define local and master cofiguration
Submitted: 2021-03-19 17:14 UTC Modified: -
From: jab_creations at yahoo dot com Assigned:
Status: Open Package: *General Issues
PHP Version: 7.4.16 OS: *nix/Win
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2021-03-19 17:14 UTC] jab_creations at yahoo dot com
Description:
------------
Some of our hosts use cPanel and unfortunately cPanel gets a bit excessive with how many copies of php.ini files they have all over the file system. In fact the file system is a mess!

Any way I've been reviewing various PHP settings trying to make it more difficult for troublemakers to do things e.g. the request variables were set to 10,000! I called my host and they had trouble figuring out where the local settings were being defined.

I think it'd save a lot of people the headache of testing numerous php.ini files if the phpinfo() function showed a list of each local and mater configuration file (and their absolute path).

Additionally I personally don't like seeing cPanel add PHP settings to the Apache .htaccess configuration files (that is for Apache, whatever...) and I think it'd be very useful to know if any other configuration files such as Apache's configuration files were being used for anything.

Test script:
---------------
<?php
phpinfo();
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Oct 20 23:03:35 2021 UTC