Add test case

This commit is contained in:
Andrey Hristov 2011-10-06 17:06:02 +00:00
parent eb0f361439
commit 5b1efc1d87

View File

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