1--TEST-- 2mysqli_thread_id() 3--EXTENSIONS-- 4mysqli 5--SKIPIF-- 6<?php 7require_once('skipifconnectfailure.inc'); 8?> 9--FILE-- 10<?php 11 require_once("connect.inc"); 12 13 require('table.inc'); 14 15 if (!is_int($tmp = mysqli_thread_id($link)) || (0 === $tmp)) 16 printf("[003] Expecting int/any but zero, got %s/%s. [%d] %s\n", 17 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link)); 18 19 // should work if the thread id is correct 20 mysqli_kill($link, mysqli_thread_id($link)); 21 22 mysqli_close($link); 23 24 try { 25 mysqli_thread_id($link); 26 } catch (Error $exception) { 27 echo $exception->getMessage() . "\n"; 28 } 29 30 print "done!"; 31?> 32--CLEAN-- 33<?php 34 require_once("clean_table.inc"); 35?> 36--EXPECT-- 37mysqli object is already closed 38done! 39