xref: /PHP-5.4/ext/mysqli/tests/bug55859.phpt (revision 20e76f44)
1--TEST--
2Bug #55859 mysqli->stat property access gives error
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifconnectfailure.inc');
7?>
8--FILE--
9<?php
10	require_once("connect.inc");
11
12	if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
13		printf("[001] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
14	}
15	var_dump(soundex(mysqli_stat($link)) === soundex($link->stat));
16	echo "done!";
17?>
18--EXPECT--
19bool(true)
20done!
21