Skip to content

Commit 22e721c

Browse files
jpsn123blizzz
andauthored
fix stream_set_blocking param
Co-authored-by: Arthur Schiwon <blizzz@arthur-schiwon.de> Signed-off-by: cn-shell <jpsn@foxmail.com>
1 parent 3fe5ef6 commit 22e721c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/Preview/Movie.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ private function generateThumbNail(int $maxX, int $maxY, string $absPath, int $s
144144
$returnCode = -1;
145145
$output = "";
146146
if (is_resource($proc)) {
147-
stream_set_blocking($pipes[1], 0);
148-
stream_set_blocking($pipes[2], 0);
147+
stream_set_blocking($pipes[1], false);
148+
stream_set_blocking($pipes[2], false);
149149
$stdout = trim(stream_get_contents($pipes[1]));
150150
$stderr = trim(stream_get_contents($pipes[2]));
151151
$returnCode = proc_close($proc);

0 commit comments

Comments
 (0)