1--TEST-- 2mysql_fetch_row (OO-Style) 3--SKIPIF-- 4<?php 5require_once('skipif.inc'); 6require_once('skipifconnectfailure.inc'); 7?> 8--FILE-- 9<?php 10 require_once("connect.inc"); 11 12 /*** test mysqli_connect 127.0.0.1 ***/ 13 $mysql = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 14 15 $mysql->select_db($db); 16 $result = $mysql->query("SELECT DATABASE()"); 17 $row = $result->fetch_row(); 18 $result->close(); 19 20 var_dump($row); 21 if ($row[0] != $db) 22 printf("[001] Expecting '%s' got '%s'\n", $db, $row[0]); 23 24 $mysql->close(); 25 print "done!"; 26?> 27--EXPECTF-- 28array(1) { 29 [0]=> 30 string(%d) "%s" 31} 32done! 33