xref: /PHP-7.4/ext/mysqli/tests/034.phpt (revision e3e67b72)
1--TEST--
2function test: mysqli_get_proto_info
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifemb.inc');
7require_once('skipifconnectfailure.inc');
8?>
9--FILE--
10<?php
11    require_once("connect.inc");
12
13    /*** test mysqli_connect 127.0.0.1 ***/
14    $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
15
16    $pinfo = mysqli_get_proto_info($link);
17
18    var_dump($pinfo);
19
20    mysqli_close($link);
21    print "done!";
22?>
23--EXPECT--
24int(10)
25done!
26