5 require_once('skipif.inc');
6 require_once('skipifemb.inc');
7 require_once('skipifconnectfailure.inc');
11 require_once("connect.inc");
16 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
17 printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
18 $host, $user, $db, $port, $socket);
20 if (!is_null($tmp = @$mysqli->close($link)))
21 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
23 $tmp = $mysqli->close();
25 printf("[003] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
27 if (!is_null($tmp = @$mysqli->close()))
28 printf("[004] Expecting NULL got %s/%s\n", gettype($tmp), $tmp);
30 if (!is_null($tmp = @$mysqli->query("SELECT 1")))
31 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);