mirror of
https://github.com/php/php-src.git
synced 2024-10-16 05:52:36 +00:00
20 lines
317 B
Plaintext
20 lines
317 B
Plaintext
|
--TEST--
|
||
|
function test: mysqli_get_server_info
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$user = "root";
|
||
|
$passwd = "";
|
||
|
|
||
|
|
||
|
/*** test mysqli_connect 127.0.0.1 ***/
|
||
|
$link = mysqli_connect("localhost", $user, $passwd);
|
||
|
|
||
|
$sinfo = substr(mysqli_get_server_info($link),0,1);
|
||
|
|
||
|
var_dump($sinfo);
|
||
|
|
||
|
mysqli_close($link);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
string(1) "4"
|