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