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 53c756a commit c8369edCopy full SHA for c8369ed
Worker.php
@@ -1250,8 +1250,12 @@ public static function resetStd()
1250
if ($handle) {
1251
unset($handle);
1252
\set_error_handler(function(){});
1253
- \fclose($STDOUT);
1254
- \fclose($STDERR);
+ if ($STDOUT) {
+ \fclose($STDOUT);
1255
+ }
1256
+ if ($STDERR) {
1257
+ \fclose($STDERR);
1258
1259
\fclose(\STDOUT);
1260
\fclose(\STDERR);
1261
$STDOUT = \fopen(static::$stdoutFile, "a");
0 commit comments