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    require "table.inc";
14    /* 5.1.5 -> 50105 -- major_version*10000 + minor_version *100 + sub_version */
15    /* < 30000 = pre 3.2.3, very unlikely! */
16    if (!is_int($info = mysqli_get_server_version($link)) || ($info < (3 * 10000)))
17        printf("[003] Expecting int/any >= 30000, got %s/%s\n", gettype($info), $info);
18
19    print "done!";
20?>
21--EXPECT--
22done!
23