summaryrefslogtreecommitdiff
path: root/ext/mysqli
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2006-07-11 23:35:38 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2006-07-11 23:35:38 +0000
commit3e099a5983a9bdee287cd29bf9aaacae70cb4daf (patch)
treecde5aea8578cf2ce3fd052c44811c04114366221 /ext/mysqli
parentd21628f99351a96ba50d87eb3fd7b8aa4042f25b (diff)
downloadphp-git-3e099a5983a9bdee287cd29bf9aaacae70cb4daf.tar.gz
MFH test for ping and kill methods
Diffstat (limited to 'ext/mysqli')
-rw-r--r--ext/mysqli/tests/071.phpt36
1 files changed, 36 insertions, 0 deletions
diff --git a/ext/mysqli/tests/071.phpt b/ext/mysqli/tests/071.phpt
new file mode 100644
index 0000000000..75ff3e850d
--- /dev/null
+++ b/ext/mysqli/tests/071.phpt
@@ -0,0 +1,36 @@
+--TEST--
+mysqli thread_id & kill
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+<?php require_once('skipifemb.inc'); ?>
+--FILE--
+<?php
+ include "connect.inc";
+
+ $mysql = new mysqli($host, $user, $passwd, "test");
+
+ var_dump($mysql->ping());
+
+ var_dump($mysql->kill($mysql->thread_id));
+
+ var_dump($mysql->ping());
+
+ $mysql->close();
+
+ $mysql = new mysqli($host, $user, $passwd, "test");
+
+ var_dump(mysqli_ping($mysql));
+
+ var_dump(mysqli_kill($mysql, mysqli_thread_id($mysql)));
+
+ var_dump(mysqli_ping($mysql));
+
+ $mysql->close();
+?>
+--EXPECT--
+bool(true)
+bool(true)
+bool(false)
+bool(true)
+bool(true)
+bool(false)