1--TEST-- 2free 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 * free statement after close 14 ************************/ 15 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 16 17 $stmt1 = mysqli_prepare($link, "SELECT CURRENT_USER()"); 18 mysqli_stmt_execute($stmt1); 19 20 mysqli_close($link); 21 @mysqli_stmt_close($stmt1); 22 printf("Ok\n"); 23?> 24--EXPECT-- 25Ok 26