xref: /PHP-8.0/ext/mysqli/tests/053.phpt (revision e3e67b72)
1--TEST--
2not freed resultset
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     * non freed resultset
14     ************************/
15    $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
16
17    $result = mysqli_query($link, "SELECT CURRENT_USER()");
18    mysqli_close($link);
19    printf("Ok\n");
20
21?>
22--EXPECT--
23Ok
24