1--TEST-- 2mysqli_stat() 3--SKIPIF-- 4<?php 5require_once('skipif.inc'); 6require_once('skipifconnectfailure.inc'); 7?> 8--FILE-- 9<?php 10 require_once("connect.inc"); 11 12 require('table.inc'); 13 14 if ((!is_string($tmp = mysqli_stat($link))) || ('' === $tmp)) 15 printf("[004] Expecting non empty string, got %s/'%s', [%d] %s\n", 16 gettype($tmp), $tmp, mysqli_errno($link), mysql_error($link)); 17 18 mysqli_close($link); 19 20 try { 21 mysqli_stat($link); 22 } catch (Error $exception) { 23 echo $exception->getMessage() . "\n"; 24 } 25 26 print "done!"; 27?> 28--EXPECT-- 29mysqli object is already closed 30done! 31