1--TEST--
2mysqli_fetch_object()
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifemb.inc');
7require_once('skipifconnectfailure.inc');
8?>
9--FILE--
10<?php
11    require('table.inc');
12    if (!$res = mysqli_query($link, "SELECT id AS ID, label FROM test AS TEST ORDER BY id LIMIT 5")) {
13        printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
14    }
15
16    $obj = mysqli_fetch_object($res);
17    var_dump(gettype($obj));
18    mysqli_close($link);
19    print "done!";
20?>
21--CLEAN--
22<?php
23    require_once("clean_table.inc");
24?>
25--EXPECTF--
26%s(6) "object"
27done!
28