Req #60594 [Com]: mysqlnd exposes 160 lines of stats in phpinfo
| From: | mediabusin54 at gmail dot com | Date: | Thu, 27 Apr 2023 06:43:59 +0000 |
| Subject: | Req #60594 [Com]: mysqlnd exposes 160 lines of stats in phpinfo | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-244281@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60594&edit=1
ID: 60594
Comment by: mediabusin54 at gmail dot com
Reported by: jakoch at web dot de
Summary: mysqlnd exposes 160 lines of stats in phpinfo
Status: Open
Type: Feature/Change Request
Package: MySQL related
PHP Version: trunk-SVN-2011-12-22 (SVN)
Block user comment: N
Private report: N
New Comment:
Dashrathbhai Atmaramdas Pa or have heard of him. More info to visit:
(https://www.paramshanti.org)github.com
Previous Comments:
------------------------------------------------------------------------
[2013-03-29 16:22:51] rgagnon24 at gmail dot com
I have to agree with jakoch. This is not a security problem, but a slippery-slope thing. phpinfo()
is not a place to just display random statistics from any module that might feel like doing so.
There are already stats functions within PHP that can be used for this as documented on http://www.php.net/manual/en/mysqlnd.stats.php
IE:
mysqli_get_client_stats()
mysqli_get_connection_stats()
mysqli_get_cache_stats()
------------------------------------------------------------------------
[2011-12-22 18:30:37] jakoch at web dot de
Description:
------------
hello,
this is a change request: i think that it is not appropriate, that the mysqlnd extension exposes a
list of 160 statistical items when calling the phpinfo() function.
i'm suggesting
a) to remove the client statistics from the phpinfo screen,
because phpinfo's focus is a bit more on configuration directives and not so much on
statistics; every other extension could expose it there, too;
it's way too long to scroll through that list of stats-items
b) to make these statistics available via an mysqlnd_stats() or mysqlnd_info() function.
anyway, you got my intention :)
best, jens
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60594&edit=1