--TEST-- mysqli_stmt_init() --EXTENSIONS-- mysqli --SKIPIF-- --FILE-- getMessage() . "\n"; } mysqli_close($link); try { mysqli_stmt_init($link); } catch (Error $exception) { echo $exception->getMessage() . "\n"; } print "done!"; ?> --CLEAN-- --EXPECT-- mysqli_stmt object is not fully initialized mysqli object is already closed done!