]> granicus.if.org Git - php/commitdiff
MFH test for ping and kill methods
authorHartmut Holzgraefe <hholzgra@php.net>
Tue, 11 Jul 2006 23:35:38 +0000 (23:35 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Tue, 11 Jul 2006 23:35:38 +0000 (23:35 +0000)
ext/mysqli/tests/071.phpt [new file with mode: 0644]

diff --git a/ext/mysqli/tests/071.phpt b/ext/mysqli/tests/071.phpt
new file mode 100644 (file)
index 0000000..75ff3e8
--- /dev/null
@@ -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)