--TEST-- Fail gracefully on empty result set --EXTENSIONS-- mysqli --SKIPIF-- --FILE-- multi_query("SELECT 1"); var_dump($link->next_result()); // should return false var_dump($link->store_result()); // now what happens here!? // Returns only one result set $link->multi_query("SELECT 1"); var_dump($link->next_result()); var_dump($link->use_result()); $link->close(); ?> --CLEAN-- --EXPECT-- bool(false) object(mysqli_result)#3 (5) { ["current_field"]=> int(0) ["field_count"]=> int(1) ["lengths"]=> NULL ["num_rows"]=> int(1) ["type"]=> int(0) } bool(false) object(mysqli_result)#3 (5) { ["current_field"]=> int(0) ["field_count"]=> int(1) ["lengths"]=> NULL ["num_rows"]=> int(0) ["type"]=> int(1) }