--TEST-- mysqli_num_fields() --EXTENSIONS-- mysqli --SKIPIF-- --FILE-- getMessage() . "\n"; } } func_test_mysqli_num_fields($link, "SELECT 1 AS a", 1, 5); func_test_mysqli_num_fields($link, "SELECT id, label FROM test", 2, 10); func_test_mysqli_num_fields($link, "SELECT 1 AS a, NULL AS b, 'foo' AS c", 3, 15); func_test_mysqli_num_fields($link, "SELECT id FROM test", 1, 20); mysqli_close($link); print "done!"; ?> --CLEAN-- --EXPECT-- mysqli_result object is already closed mysqli_result object is already closed mysqli_result object is already closed mysqli_result object is already closed done!