Req #80890 [NEW]: phpinfo should make it clear what files define local and master cofiguration

From: Date: Fri, 19 Mar 2021 17:14:08 +0000
Subject: Req #80890 [NEW]: phpinfo should make it clear what files define local and master cofiguration
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232890@lists.php.net to get a copy of this message
From:             jab_creations at yahoo dot com
Operating system: *nix/Win
PHP version:      7.4.16
Package:          *General Issues
Bug Type:         Feature/Change Request
Bug description:phpinfo should make it clear what files define local and master cofiguration

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();
?>


-- 
Edit bug report at https://bugs.php.net/bug.php?id=80890&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80890&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80890&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80890&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80890&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80890&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80890&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80890&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80890&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80890&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80890&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80890&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80890&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80890&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80890&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80890&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80890&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80890&r=mysqlcfg


Thread (5 messages)

« previous php.bugs (#232890) next »