--- /dev/null
+--TEST--\r
+Bug #55859 mysqli->stat property access gives error\r
+--SKIPIF--\r
+<?php\r
+require_once('skipif.inc');\r
+require_once('skipifconnectfailure.inc');\r
+?>\r
+--FILE--\r
+<?php\r
+ require_once("connect.inc");\r
+\r
+ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {\r
+ printf("[001] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());\r
+ }\r
+ var_dump(mysqli_stat($link) === $link->stat);\r
+ echo "done!";\r
+?>\r
+--EXPECT--\r
+bool(true)\r
+done!
\ No newline at end of file