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 f3d5d73 commit c6bfcccCopy full SHA for c6bfccc
src/AsyncTask.php
@@ -119,7 +119,9 @@ public function run(): void
119
register_shutdown_function([$this, 'shutdownCheckTaskTimeout']);
120
if (OsInfo::isWindows()) {
121
// windows can just use PHP's time limit
122
- set_time_limit($this->timeLimit);
+ if ($this->timeLimit > 0) {
123
+ set_time_limit($this->timeLimit);
124
+ }
125
} else {
126
// assume anything not Windows to be Unix
127
// we already set it to kill this task after the timeout, so we just need to install a listener to catch the signal and exit gracefully
0 commit comments