summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/033.phpt
blob: 7113b22ccbb491a2994afd35b0551e4b8fb760b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
function test: mysqli_get_host_info
--SKIPIF--
<?php 
require_once('skipif.inc'); 
require_once('skipifemb.inc');
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
	include "connect.inc";

	/*** test mysqli_connect 127.0.0.1 ***/
	$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket);

	$hinfo = mysqli_get_host_info($link);

	var_dump(str_replace('/','', $hinfo));

	mysqli_close($link);
	print "done!";
?>
--EXPECTF--
string(%d) "%s via %s"
done!
--UEXPECTF--
unicode(%d) "%s via %s"
done!