2003-02-12 08:46:29 +08:00
|
|
|
--TEST--
|
|
|
|
function test: mysqli_get_host_info
|
2004-12-04 16:50:33 +08:00
|
|
|
--SKIPIF--
|
2009-05-28 22:11:41 +08:00
|
|
|
<?php
|
|
|
|
require_once('skipif.inc');
|
2007-08-09 16:41:12 +08:00
|
|
|
require_once('skipifemb.inc');
|
|
|
|
require_once('skipifconnectfailure.inc');
|
|
|
|
?>
|
2003-02-12 08:46:29 +08:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2009-10-20 04:07:25 +08:00
|
|
|
require_once("connect.inc");
|
2007-07-13 04:53:05 +08:00
|
|
|
|
2003-02-12 08:46:29 +08:00
|
|
|
/*** test mysqli_connect 127.0.0.1 ***/
|
2009-09-24 20:51:03 +08:00
|
|
|
$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
|
2003-02-12 08:46:29 +08:00
|
|
|
|
|
|
|
$hinfo = mysqli_get_host_info($link);
|
|
|
|
|
2005-04-19 23:45:07 +08:00
|
|
|
var_dump(str_replace('/','', $hinfo));
|
2003-02-12 08:46:29 +08:00
|
|
|
|
|
|
|
mysqli_close($link);
|
2007-07-13 04:53:05 +08:00
|
|
|
print "done!";
|
2003-02-12 08:46:29 +08:00
|
|
|
?>
|
2005-04-19 23:45:07 +08:00
|
|
|
--EXPECTF--
|
2016-11-23 05:12:07 +08:00
|
|
|
string(%d) "%s via %s"
|
2018-10-15 10:33:09 +08:00
|
|
|
done!
|