2003-02-12 00:46:29 +00:00
|
|
|
--TEST--
|
|
|
|
function test: mysqli_get_host_info
|
2004-12-04 08:50:33 +00:00
|
|
|
--SKIPIF--
|
|
|
|
<?php require_once('skipif.inc'); ?>
|
2005-01-07 14:59:59 +00:00
|
|
|
<?php require_once('skipifemb.inc'); ?>
|
2003-02-12 00:46:29 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2004-12-04 08:16:04 +00:00
|
|
|
include "connect.inc";
|
2003-02-12 00:46:29 +00:00
|
|
|
|
|
|
|
/*** test mysqli_connect 127.0.0.1 ***/
|
2004-12-04 08:16:04 +00:00
|
|
|
$link = mysqli_connect($host, $user, $passwd);
|
2003-02-12 00:46:29 +00:00
|
|
|
|
|
|
|
$hinfo = mysqli_get_host_info($link);
|
|
|
|
|
2005-04-19 15:45:07 +00:00
|
|
|
var_dump(str_replace('/','', $hinfo));
|
2003-02-12 00:46:29 +00:00
|
|
|
|
|
|
|
mysqli_close($link);
|
|
|
|
?>
|
2005-04-19 15:45:07 +00:00
|
|
|
--EXPECTF--
|
|
|
|
string(%d) "%s via %s"
|