summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/052.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysqli/tests/052.phpt')
-rw-r--r--ext/mysqli/tests/052.phpt25
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/mysqli/tests/052.phpt b/ext/mysqli/tests/052.phpt
new file mode 100644
index 0000000..1d131f1
--- /dev/null
+++ b/ext/mysqli/tests/052.phpt
@@ -0,0 +1,25 @@
+--TEST--
+call statement after close
+--SKIPIF--
+<?php
+require_once('skipif.inc');
+require_once('skipifconnectfailure.inc');
+?>
+--FILE--
+<?php
+ require_once("connect.inc");
+
+ /************************
+ * statement call after close
+ ************************/
+ $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
+
+ $stmt2 = mysqli_prepare($link, "SELECT CURRENT_USER()");
+
+ mysqli_close($link);
+ @mysqli_stmt_execute($stmt2);
+ @mysqli_stmt_close($stmt2);
+ printf("Ok\n");
+?>
+--EXPECT--
+Ok