1--TEST-- 2mysqli_init() 3--SKIPIF-- 4<?php 5require_once('skipif.inc'); 6require_once('skipifemb.inc'); 7require_once('skipifconnectfailure.inc'); 8?> 9--FILE-- 10<?php 11 $link = mysqli_init(); 12 13 if (!is_object($link) && false !== $link) 14 printf("[001] Expecting object/mysqli_link or boolean/false, got %s/%s\n", gettype($link), $link); 15 16 if (is_object($link) && 'mysqli' != get_class($link)) 17 printf("[002] Expecting object of type mysqli got object of type %s\n", get_class($link)); 18 19 if ($link) 20 mysqli_close($link); 21 22 print "done!"; 23?> 24--EXPECT-- 25done! 26