We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ba6c2 commit 1eaffc6Copy full SHA for 1eaffc6
src/Runner/Runner.php
@@ -234,6 +234,10 @@ private function installInterruptHandler(): void
234
pcntl_signal(SIGINT, SIG_DFL);
235
$this->interrupted = true;
236
});
237
+ } elseif (function_exists('sapi_windows_set_ctrl_handler') && PHP_SAPI === 'cli') {
238
+ sapi_windows_set_ctrl_handler(function () {
239
+ $this->interrupted = true;
240
+ });
241
}
242
243
@@ -242,6 +246,8 @@ private function removeInterruptHandler(): void
246
{
247
if (extension_loaded('pcntl')) {
244
248
249
250
+ sapi_windows_set_ctrl_handler(null);
245
251
252
253
0 commit comments