1--TEST--
2function test: mysqli_get_host_info
3--EXTENSIONS--
4mysqli
5--SKIPIF--
6<?php
7require_once dirname(__DIR__) . "/test_setup/test_helpers.inc";
8mysqli_check_skip_test();
9?>
10--FILE--
11<?php
12require_once dirname(__DIR__) . "/test_setup/test_helpers.inc";
13
14    $link = default_mysqli_connect();
15
16    $hinfo = mysqli_get_host_info($link);
17
18    var_dump(str_replace('/','', $hinfo));
19
20    mysqli_close($link);
21    print "done!";
22?>
23--EXPECTF--
24string(%d) "%s via %s"
25done!
26