]> granicus.if.org Git - php/commitdiff
Add test case
authorAndrey Hristov <andrey@php.net>
Thu, 6 Oct 2011 17:06:02 +0000 (17:06 +0000)
committerAndrey Hristov <andrey@php.net>
Thu, 6 Oct 2011 17:06:02 +0000 (17:06 +0000)
ext/mysqli/tests/bug55859.phpt [new file with mode: 0644]

diff --git a/ext/mysqli/tests/bug55859.phpt b/ext/mysqli/tests/bug55859.phpt
new file mode 100644 (file)
index 0000000..a8bb4b3
--- /dev/null
@@ -0,0 +1,20 @@
+--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