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