Bug #55859 [Opn->Csd]: mysqli->stat property access gives error
| From: | andrey@php.net | Date: | Thu, 06 Oct 2011 11:25:17 +0000 |
| Subject: | Bug #55859 [Opn->Csd]: mysqli->stat property access gives error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164118@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
Updated by: andrey@php.net
Reported by: uw@php.net
Summary: mysqli->stat property access gives error
-Status: Open
+Status: Closed
Type: Bug
Package: MySQLi related
PHP Version: 5.4SVN-2011-10-06 (SVN)
-Assigned To:
+Assigned To: andrey
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Thanks!Will be part of 5.3.9
Previous Comments:
------------------------------------------------------------------------
[2011-10-06 11:24:43] andrey@php.net
Automatic comment from SVN on behalf of andrey
Revision: http://svn.php.net/viewvc/?view=revision&revision=317829
Log: Be consistent, add mysqli::stat property, as equivalent of mysqli_stat().
Fix for Bug #55859 mysqli->stat property access gives error
------------------------------------------------------------------------
[2011-10-06 11:22:54] johannes@php.net
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
------------------------------------------------------------------------
[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