Skip to content

Commit

Permalink
ShellCommand: Param #2 of stream_set_blocking() expects bool
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Aug 23, 2023
1 parent 0deef4c commit 4e04145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Pdfexport/ShellCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ public function execute()
$stdout = '';
$stderr = '';

stream_set_blocking($namedpipes->stdout, 0); // non-blocking
stream_set_blocking($namedpipes->stderr, 0);
stream_set_blocking($namedpipes->stdout, false); // non-blocking
stream_set_blocking($namedpipes->stderr, false);

while (stream_select($read, $write, $except, 0, 20000) !== false) {
foreach ($read as $pipe) {
Expand Down

0 comments on commit 4e04145

Please sign in to comment.