1--TEST-- 2next_result reports errors from previous calls 3--SKIPIF-- 4<?php 5require_once 'skipif.inc'; 6require_once 'skipifconnectfailure.inc'; 7?> 8--FILE-- 9<?php 10 11require_once __DIR__ . '/connect.inc'; 12 13mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); 14 15$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket); 16 17try { 18 $mysqli->query("Syntax Error"); 19} catch (mysqli_sql_exception $e) { 20} 21$mysqli->next_result(); 22 23print "done!"; 24 25?> 26--EXPECTF-- 27done! 28