1--TEST-- 2mysqli_result(), invalid mode 3--EXTENSIONS-- 4mysqli 5--SKIPIF-- 6<?php 7require_once('skipifconnectfailure.inc'); 8?> 9--FILE-- 10<?php 11 require('connect.inc'); 12 require('table.inc'); 13 14 $valid = array(MYSQLI_STORE_RESULT, MYSQLI_USE_RESULT); 15 $invalidModes = [-1, 152]; 16 foreach ($invalidModes as $mode) { 17 try { 18 new mysqli_result($link, $mode); 19 } catch (\ValueError $e) { 20 echo $e->getMessage() . \PHP_EOL; 21 } 22 } 23?> 24--CLEAN-- 25<?php 26 require_once("clean_table.inc"); 27?> 28--EXPECT-- 29mysqli_result::__construct(): Argument #2 ($result_mode) must be either MYSQLI_STORE_RESULT or MYSQLI_USE_RESULT 30mysqli_result::__construct(): Argument #2 ($result_mode) must be either MYSQLI_STORE_RESULT or MYSQLI_USE_RESULT 31