summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/049.phpt
blob: 7128de8d3804f02e96633536ca1971c6b43887f3 (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
31
32
33
--TEST--
mysql_fetch_row (OO-Style)
--SKIPIF--
<?php
require_once('skipif.inc');
require_once('skipifemb.inc');
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
	require_once("connect.inc");

	/*** test mysqli_connect 127.0.0.1 ***/
	$mysql = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);

	$mysql->select_db($db);
	$result = $mysql->query("SELECT DATABASE()");
	$row = $result->fetch_row();
	$result->close();

	var_dump($row);
	if ($row[0] != $db)
		printf("[001] Expecting '%s' got '%s'\n", $db, $row[0]);

	$mysql->close();
	print "done!";
?>
--EXPECTF--
array(1) {
  [0]=>
  string(%d) "%s"
}
done!