mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02: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:
parent
0bf1cbe8d0
commit
ecb58ee2cd
1 changed files with 13 additions and 0 deletions
|
@ -15,8 +15,21 @@ mysqli thread_id & kill
|
||||||
var_dump($mysql->ping());
|
var_dump($mysql->ping());
|
||||||
|
|
||||||
$mysql->close();
|
$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--
|
--EXPECT--
|
||||||
bool(true)
|
bool(true)
|
||||||
bool(true)
|
bool(true)
|
||||||
bool(false)
|
bool(false)
|
||||||
|
bool(true)
|
||||||
|
bool(true)
|
||||||
|
bool(false)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue