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