Edit report at https://bugs.php.net/bug.php?id=55859&edit=1

 ID:                 55859
 Patch added by:     johan...@php.net
 Reported by:        u...@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] u...@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

Reply via email to