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 $stmt = new mysqli_stmt($mysql, "SELECT 'foo' FROM DUAL"); 15 $stmt->execute(); 16 $stmt->bind_result($foo); 17 $stmt->fetch(); 18 $stmt->close(); 19 $mysql->close(); 20 21 var_dump($foo); 22?> 23--EXPECTF-- 24string(3) "foo" 25