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

26 lines
497 B
Plaintext
Raw Normal View History

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