1--TEST--
2mysqli_get_server_version()
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifconnectfailure.inc');
7?>
8--FILE--
9<?php
10    require_once("connect.inc");
11
12    require "table.inc";
13    /* 5.1.5 -> 50105 -- major_version*10000 + minor_version *100 + sub_version */
14    /* < 30000 = pre 3.2.3, very unlikely! */
15    if (!is_int($info = mysqli_get_server_version($link)) || ($info < (3 * 10000)))
16        printf("[003] Expecting int/any >= 30000, got %s/%s\n", gettype($info), $info);
17
18    print "done!";
19?>
20--EXPECT--
21done!
22