xref: /PHP-7.0/ext/mysqli/tests/054.phpt (revision eb0e09f5)
1--TEST--
2free resultset after close
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifconnectfailure.inc');
7?>
8--FILE--
9<?php
10	require_once("connect.inc");
11
12	/************************
13	 * free resultset after close
14	 ************************/
15	$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
16
17	$result1 = mysqli_query($link, "SELECT CURRENT_USER()");
18	mysqli_close($link);
19	mysqli_free_result($result1);
20	printf("Ok\n");
21?>
22--EXPECT--
23Ok
24