Skip to content

Commit 0cb9da1

Browse files
authored
Fix SQL test on Windows (#24755)
1 parent 563735d commit 0cb9da1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎ext/mysqli/tests/mysqli_poll_kill.phpt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require_once 'skipifconnectfailure.inc';
2727
// Sleep 0.1s - the asynchronous query should have been processed after the wait period
2828
usleep(100000);
2929
$thread_id = mysqli_thread_id($link);
30-
mysqli_kill(get_connection(), $thread_id);
30+
get_connection()->query('KILL '.$thread_id);
3131

3232
$links = array($link);
3333
$errors = array($link);
@@ -82,7 +82,7 @@ require_once 'skipifconnectfailure.inc';
8282

8383
usleep(100000);
8484
$thread_id = mysqli_thread_id($link);
85-
mysqli_kill(get_connection(), $thread_id);
85+
get_connection()->query('KILL '.$thread_id);
8686

8787
// Yes, 1 - fetch OK packet of kill!
8888
$processed = 0;
@@ -140,7 +140,7 @@ require_once 'skipifconnectfailure.inc';
140140

141141
$link = get_connection();
142142
$thread_id = mysqli_thread_id($link);
143-
mysqli_kill(get_connection(), $thread_id);
143+
get_connection()->query('KILL '.$thread_id);
144144
// Sleep 0.1s to ensure the KILL gets recognized
145145
usleep(100000);
146146
if (false !== ($tmp = mysqli_query($link, "SELECT 1 AS 'processed before killed'", MYSQLI_ASYNC | MYSQLI_USE_RESULT)))

0 commit comments

Comments
 (0)