1--TEST-- 2mysqli_dump_debug_info() 3--EXTENSIONS-- 4mysqli 5--SKIPIF-- 6<?php 7require_once 'skipifconnectfailure.inc'; 8?> 9--FILE-- 10<?php 11 require_once 'connect.inc'; 12 13 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket)) 14 printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n", $host, $user, $db, $port, $socket); 15 16 if (!is_bool($tmp = $mysqli->dump_debug_info())) 17 printf("[003] Expecting boolean/[true|false] value, got %s/%s, [%d] %s\n", 18 gettype($tmp), $tmp, 19 $mysqli->errno, $mysqli->error); 20 21 $mysqli->close(); 22 23 try { 24 $mysqli->dump_debug_info(); 25 } catch (Error $exception) { 26 echo $exception->getMessage() . "\n"; 27 } 28 29 print "done!"; 30?> 31--EXPECT-- 32mysqli object is already closed 33done! 34