mirror of
https://github.com/php/php-src.git
synced 2024-12-18 22:41:20 +08:00
20 lines
326 B
PHP
20 lines
326 B
PHP
--TEST--
|
|
function test: mysqli_get_host_info
|
|
--FILE--
|
|
<?php
|
|
$user = "root";
|
|
$passwd = "";
|
|
|
|
|
|
/*** test mysqli_connect 127.0.0.1 ***/
|
|
$link = mysqli_connect("localhost", $user, $passwd);
|
|
|
|
$hinfo = mysqli_get_host_info($link);
|
|
|
|
var_dump($hinfo);
|
|
|
|
mysqli_close($link);
|
|
?>
|
|
--EXPECT--
|
|
string(25) "Localhost via UNIX socket"
|