php-src/ext/mysqli/tests/035.phpt

20 lines
351 B
Plaintext
Raw Normal View History

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