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