xref: /PHP-8.3/ext/mysqli/tests/052.phpt (revision a21edc52)
1--TEST--
2call statement after close
3--EXTENSIONS--
4mysqli
5--SKIPIF--
6<?php
7require_once 'skipifconnectfailure.inc';
8?>
9--FILE--
10<?php
11    require_once 'connect.inc';
12
13    /************************
14     * statement call  after close
15     ************************/
16    $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
17
18    $stmt2 = mysqli_prepare($link, "SELECT CURRENT_USER()");
19
20    mysqli_close($link);
21    @mysqli_stmt_execute($stmt2);
22    @mysqli_stmt_close($stmt2);
23    printf("Ok\n");
24?>
25--EXPECT--
26Ok
27