From: uw
Operating system:
PHP version: 5.4SVN-2011-10-06 (SVN)
Package: MySQLi related
Bug Type: Bug
Bug description:mysqli->stat property access gives error
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 bug report at https://bugs.php.net/bug.php?id=55859&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=55859&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=55859&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=55859&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=55859&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=55859&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=55859&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=55859&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=55859&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=55859&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=55859&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=55859&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=55859&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=55859&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=55859&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=55859&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55859&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=55859&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=55859&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=55859&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=55859&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=55859&r=mysqlcfg