mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
25 lines
453 B
PHP
25 lines
453 B
PHP
--TEST--
|
|
function test: mysqli_get_proto_info
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
require_once('skipifemb.inc');
|
|
require_once('skipifconnectfailure.inc');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require_once("connect.inc");
|
|
|
|
/*** test mysqli_connect 127.0.0.1 ***/
|
|
$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
|
|
|
|
$pinfo = mysqli_get_proto_info($link);
|
|
|
|
var_dump($pinfo);
|
|
|
|
mysqli_close($link);
|
|
print "done!";
|
|
?>
|
|
--EXPECT--
|
|
int(10)
|
|
done!
|