summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/062.phpt
blob: fa02853a1912172c069d5964541a67aacbe31b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--TEST--
resultset constructor
--SKIPIF--
<?php
require_once('skipif.inc');
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
	require_once("connect.inc");

	$mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);

	$mysql->real_query("SELECT 'foo' FROM DUAL");

	$myresult = new mysqli_result($mysql);

	$row = $myresult->fetch_row();
	$myresult->close();
	$mysql->close();

	var_dump($row);
	print "done!";
?>
--EXPECT--
array(1) {
  [0]=>
  string(3) "foo"
}
done!