mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
21 lines
390 B
PHP
21 lines
390 B
PHP
--TEST--
|
|
call statement after close
|
|
--FILE--
|
|
<?php
|
|
include "connect.inc";
|
|
|
|
/************************
|
|
* statement call after close
|
|
************************/
|
|
$link = mysqli_connect("localhost", $user, $passwd);
|
|
|
|
$stmt2 = mysqli_prepare($link, "SELECT CURRENT_USER()");
|
|
|
|
mysqli_close($link);
|
|
@mysqli_execute($stmt2);
|
|
@mysqli_stmt_close($stmt2);
|
|
printf("Ok\n");
|
|
?>
|
|
--EXPECT--
|
|
Ok
|