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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2023-06-12 11:26 UTC] getfinanceinvestment at gmail dot com
Getfinanceinvestment are sharing latest news about finance, business, loan, investment, trading, banking, demat account, tax etc. More info to visit: (https://getfinanceinvestment.com)github.com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC