From 34e7dde726557c667e18d2e6e60668a31eba0a2a Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Wed, 23 Aug 2023 13:09:05 +0200 Subject: [PATCH] ShellCommand: Param #2 of `stream_set_blocking()` expects bool --- library/Pdfexport/ShellCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Pdfexport/ShellCommand.php b/library/Pdfexport/ShellCommand.php index c669773..1fa944d 100644 --- a/library/Pdfexport/ShellCommand.php +++ b/library/Pdfexport/ShellCommand.php @@ -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) {