|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesbug55859.diff (last revision 2011-10-06 11:22 UTC by johannes@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-10-06 11:22 UTC] johannes@php.net
[2011-10-06 11:24 UTC] andrey@php.net
[2011-10-06 11:25 UTC] andrey@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: andrey
[2011-10-06 11:25 UTC] andrey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 07:00:01 2025 UTC |
Description: ------------ sapi/cli/php -r '$mysqli = new mysqli("localhost", "root", "", "test"); var_dump(mysqli_stat($mysqli)); var_dump($mysqli->stat);' string(140) "Uptime: 2059747 Threads: 1 Questions: 126152 Slow queries: 0 Opens: 6377 Flush tables: 1 Open tables: 18 Queries per second avg: 0.61" PHP Notice: Undefined property: mysqli::$stat in Command line code on line 1 NULL According to the docs there should be mysqli->stat, http://www.php.net/manual/en/mysqli.stat.php Test script: --------------- sapi/cli/php -r '$mysqli = new mysqli("localhost", "root", "", "test"); var_dump(mysqli_stat($mysqli)); var_dump($mysqli->stat);' string(140) "Uptime: 2059747 Threads: 1 Questions: 126152 Slow queries: 0 Opens: 6377 Flush tables: 1 Open tables: 18 Queries per second avg: 0.61" PHP Notice: Undefined property: mysqli::$stat in Command line code on line 1 NULL Expected result: ---------------- Fix code or docs.