xref: /PHP-8.2/ext/mysqli/tests/044.phpt (revision b5a14e6c)
1--TEST--
2mysqli_get_server_version
3--EXTENSIONS--
4mysqli
5--SKIPIF--
6<?php
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    $i = mysqli_get_server_version($link);
17
18    $test = $i / $i;
19
20    var_dump($test);
21
22    mysqli_close($link);
23    print "done!";
24?>
25--EXPECT--
26int(1)
27done!
28