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