1--TEST--
2mysql_get_client_info()
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7include "connect.inc";
8if (!is_string($info = mysql_get_client_info()) || ('' === $info))
9	printf("[001] Expecting string/any_non_empty, got %s/%s\n", gettype($info), $info);
10
11if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($info)) {
12	printf("[002] Expecting Unicode!\n");
13	var_inspect($info);
14}
15
16if (!is_null($tmp = @mysql_get_client_info("too many arguments"))) {
17	printf("[003] Expecting NULL/NULL got %s/%s\n", $tmp, gettype($tmp));
18}
19
20print "done!";
21?>
22--EXPECTF--
23done!