diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2006-07-11 23:35:38 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2006-07-11 23:35:38 +0000 |
commit | 3e099a5983a9bdee287cd29bf9aaacae70cb4daf (patch) | |
tree | cde5aea8578cf2ce3fd052c44811c04114366221 /ext/mysqli | |
parent | d21628f99351a96ba50d87eb3fd7b8aa4042f25b (diff) | |
download | php-git-3e099a5983a9bdee287cd29bf9aaacae70cb4daf.tar.gz |
MFH test for ping and kill methods
Diffstat (limited to 'ext/mysqli')
-rw-r--r-- | ext/mysqli/tests/071.phpt | 36 |
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) |