2003-02-12 08:46:29 +08:00
|
|
|
--TEST--
|
|
|
|
function test: mysqli_get_server_info
|
2004-12-04 16:50:33 +08:00
|
|
|
--SKIPIF--
|
|
|
|
<?php require_once('skipif.inc'); ?>
|
2003-02-12 08:46:29 +08:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2004-12-04 16:16:04 +08:00
|
|
|
include "connect.inc";
|
2003-02-12 08:46:29 +08:00
|
|
|
|
|
|
|
/*** test mysqli_connect 127.0.0.1 ***/
|
2004-12-04 16:16:04 +08:00
|
|
|
$link = mysqli_connect($host, $user, $passwd);
|
2003-02-12 08:46:29 +08:00
|
|
|
|
|
|
|
$sinfo = substr(mysqli_get_server_info($link),0,1);
|
|
|
|
|
2004-02-16 23:32:46 +08:00
|
|
|
var_dump(strlen($sinfo));
|
2003-02-12 08:46:29 +08:00
|
|
|
|
|
|
|
mysqli_close($link);
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
2004-02-16 23:32:46 +08:00
|
|
|
int(1)
|