php-src/ext/mysqli/tests/051.phpt

23 lines
431 B
Plaintext
Raw Normal View History

2003-02-17 23:29:58 +00:00
--TEST--
free statement after close
2004-12-04 08:50:33 +00:00
--SKIPIF--
<?php require_once('skipif.inc'); ?>
2003-02-17 23:29:58 +00:00
--FILE--
<?php
include "connect.inc";
/************************
* free statement after close
************************/
$link = mysqli_connect($host, $user, $passwd);
2003-02-17 23:29:58 +00:00
$stmt1 = mysqli_prepare($link, "SELECT CURRENT_USER()");
mysqli_execute($stmt1);
mysqli_close($link);
2003-03-03 22:50:34 +00:00
@mysqli_stmt_close($stmt1);
2003-02-17 23:29:58 +00:00
printf("Ok\n");
?>
--EXPECT--
Ok