1--TEST-- 2mysqli_get_host_info() 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 if (!is_string($info = mysqli_get_host_info($link)) || ('' === $info)) 15 printf("[003] Expecting string/any_non_empty, got %s/%s\n", gettype($info), $info); 16 17 if ($IS_MYSQLND && $host != 'localhost' && $host != '127.0.0.1' && $port != '' && $host != "" && strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') { 18 /* this should be a TCP/IP connection and not a Unix Socket (or SHM or Named Pipe) */ 19 if (!stristr($info, "TCP/IP")) 20 printf("[004] Should be a TCP/IP connection but mysqlnd says '%s'\n", $info); 21 } 22 print "done!"; 23?> 24--CLEAN-- 25<?php 26 require_once("clean_table.inc"); 27?> 28--EXPECT-- 29done! 30