1--TEST--
2mysqli_fetch_row()
3--EXTENSIONS--
4mysqli
5--SKIPIF--
6<?php
7require_once 'skipifconnectfailure.inc';
8?>
9--FILE--
10<?php
11    require 'table.inc';
12    if (!$res = mysqli_query($link, "SELECT id, label, id AS _id FROM test ORDER BY id LIMIT 1")) {
13        printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
14    }
15
16    print "[004]\n";
17    var_dump(mysqli_fetch_row($res));
18
19    print "[005]\n";
20    var_dump(mysqli_fetch_row($res));
21
22    mysqli_free_result($res);
23
24    try {
25        mysqli_fetch_row($res);
26    } catch (Error $exception) {
27        echo $exception->getMessage() . "\n";
28    }
29
30    mysqli_close($link);
31    print "done!";
32?>
33--CLEAN--
34<?php
35    require_once 'clean_table.inc';
36?>
37--EXPECT--
38[004]
39array(3) {
40  [0]=>
41  string(1) "1"
42  [1]=>
43  string(1) "a"
44  [2]=>
45  string(1) "1"
46}
47[005]
48NULL
49mysqli_result object is already closed
50done!
51