Bug #55859 [PATCH]: mysqli->stat property access gives error
| From: | johannes@php.net | Date: | Thu, 06 Oct 2011 11:22:54 +0000 |
| Subject: | Bug #55859 [PATCH]: mysqli->stat property access gives error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164117@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55859&edit=1
ID: 55859
Patch added by: johannes@php.net
Reported by: uw@php.net
Summary: mysqli->stat property access gives error
Status: Open
Type: Bug
Package: MySQLi related
PHP Version: 5.4SVN-2011-10-06 (SVN)
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: bug55859.diff
Revision: 1317900174
URL: https://bugs.php.net/patch-display.php?bug=55859&patch=bug55859.diff&revision=1317900174
Previous Comments:
------------------------------------------------------------------------
[2011-10-06 10:26:31] uw@php.net
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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55859&edit=1