xref: /PHP-7.4/ext/mysqli/tests/052.phpt (revision e3e67b72)
1--TEST--
2call statement after close
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     * statement call  after close
14     ************************/
15    $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
16
17    $stmt2 = mysqli_prepare($link, "SELECT CURRENT_USER()");
18
19    mysqli_close($link);
20    @mysqli_stmt_execute($stmt2);
21    @mysqli_stmt_close($stmt2);
22    printf("Ok\n");
23?>
24--EXPECT--
25Ok
26