1--TEST-- 2Fail gracefully on empty result set 3--SKIPIF-- 4<?php 5require_once('skipif.inc'); 6require_once('skipifconnectfailure.inc'); 7?> 8--FILE-- 9<?php 10 require_once("connect.inc"); 11 require('table.inc'); 12 13 // Returns only one result set 14 $link->multi_query("SELECT 1"); 15 var_dump($link->next_result()); // should return false 16 var_dump($link->store_result()); // now what happens here!? 17 18 19 // Returns only one result set 20 $link->multi_query("SELECT 1"); 21 var_dump($link->next_result()); 22 var_dump($link->use_result()); 23 24 $link->close(); 25?> 26--CLEAN-- 27<?php 28 require_once("clean_table.inc"); 29?> 30--EXPECT-- 31bool(false) 32object(mysqli_result)#3 (5) { 33 ["current_field"]=> 34 int(0) 35 ["field_count"]=> 36 int(1) 37 ["lengths"]=> 38 NULL 39 ["num_rows"]=> 40 int(1) 41 ["type"]=> 42 int(0) 43} 44bool(false) 45object(mysqli_result)#3 (5) { 46 ["current_field"]=> 47 int(0) 48 ["field_count"]=> 49 int(1) 50 ["lengths"]=> 51 NULL 52 ["num_rows"]=> 53 int(0) 54 ["type"]=> 55 int(1) 56} 57