mirror of
https://github.com/php/php-src.git
synced 2024-12-25 17:59:52 +08:00
Add test case
This commit is contained in:
parent
eb0f361439
commit
5b1efc1d87
20
ext/mysqli/tests/bug55859.phpt
Normal file
20
ext/mysqli/tests/bug55859.phpt
Normal 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!
|
Loading…
Reference in New Issue
Block a user