From ecb58ee2cd47d7c60ea707dcacce9de07da19a11 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Tue, 11 Jul 2006 07:21:27 +0000 Subject: [PATCH] check both OO and procedural style as "thread_id" is a property and not a method in the OO interface --- ext/mysqli/tests/071.phpt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ext/mysqli/tests/071.phpt b/ext/mysqli/tests/071.phpt index 0ee0f9d27ca..ff8218f470b 100644 --- a/ext/mysqli/tests/071.phpt +++ b/ext/mysqli/tests/071.phpt @@ -15,8 +15,21 @@ mysqli thread_id & kill 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)