diff options
| author | Andrey Hristov <andrey@php.net> | 2011-10-06 17:06:02 +0000 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 2011-10-06 17:06:02 +0000 |
| commit | 00e9a1f942ae379c67b110d55c548795a200f92c (patch) | |
| tree | 89780eeca2b6ab6545d5cdc646a0440611fa7914 /ext | |
| parent | 26dd8c52c48c5ce497040ff36ccb6dabbcb516e4 (diff) | |
| download | php-git-00e9a1f942ae379c67b110d55c548795a200f92c.tar.gz | |
Add test case
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/mysqli/tests/bug55859.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/mysqli/tests/bug55859.phpt b/ext/mysqli/tests/bug55859.phpt new file mode 100644 index 0000000000..a8bb4b3f24 --- /dev/null +++ b/ext/mysqli/tests/bug55859.phpt @@ -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!
\ No newline at end of file |
