1--TEST-- 2resultset constructor 3--SKIPIF-- 4<?php 5require_once('skipif.inc'); 6require_once('skipifconnectfailure.inc'); 7?> 8--FILE-- 9<?php 10 require_once("connect.inc"); 11 12 $mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket); 13 14 $mysql->real_query("SELECT 'foo' FROM DUAL"); 15 16 $myresult = new mysqli_result($mysql); 17 18 $row = $myresult->fetch_row(); 19 $myresult->close(); 20 $mysql->close(); 21 22 var_dump($row); 23 print "done!"; 24?> 25--EXPECTF-- 26array(1) { 27 [0]=> 28 %unicode|string%(3) "foo" 29} 30done! 31