1--TEST-- 2mysqli_get_server_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 if (!is_null($tmp = @mysqli_get_server_info())) 14 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 15 16 if (!is_null($tmp = @mysqli_get_server_info(NULL))) 17 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 18 19 require "table.inc"; 20 if (!is_string($info = mysqli_get_server_info($link)) || ('' === $info)) 21 printf("[003] Expecting string/any_non_empty, got %s/%s\n", gettype($info), $info); 22 23 if (!is_null($tmp = @mysqli_get_server_info('too', 'many arguments'))) 24 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 25 26 print "done!"; 27?> 28--CLEAN-- 29<?php 30 require_once("clean_table.inc"); 31?> 32--EXPECTF-- 33done!