2 mysqli_get_server_version()
5 require_once('skipif.inc');
6 require_once('skipifemb.inc');
7 require_once('skipifconnectfailure.inc');
11 require_once("connect.inc");
13 if (!is_null($tmp = @mysqli_get_server_version()))
14 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
16 if (!is_null($tmp = @mysqli_get_server_version(NULL)))
17 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
20 /* 5.1.5 -> 50105 -- major_version*10000 + minor_version *100 + sub_version */
21 /* < 30000 = pre 3.2.3, very unlikely! */
22 if (!is_int($info = mysqli_get_server_version($link)) || ($info < (3 * 10000)))
23 printf("[003] Expecting int/any >= 30000, got %s/%s\n", gettype($info), $info);