xref: /PHP-5.4/ext/mysqli/tests/044.phpt (revision eb0e09f5)
1--TEST--
2mysqli_get_server_version
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifconnectfailure.inc');
7?>
8--FILE--
9<?php
10	require_once("connect.inc");
11
12	/*** test mysqli_connect 127.0.0.1 ***/
13	$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
14
15	$i = mysqli_get_server_version($link);
16
17	$test = $i / $i;
18
19	var_dump($test);
20
21	mysqli_close($link);
22	print "done!";
23?>
24--EXPECT--
25int(1)
26done!