mirror of
https://github.com/php/php-src.git
synced 2026-03-28 10:12:18 +01:00
check both OO and procedural style as "thread_id" is a property and not
a method in the OO interface
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user