Skip to content

Commit c2e9596

Browse files
author
Vladislav Kolesnikov
committed
fix incorrect "0" byte read from socket
1 parent ae8234f commit c2e9596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adoy/FastCGI/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ private function readPacket()
384384
$resp['content'] = '';
385385
if ($resp['contentLength']) {
386386
$len = $resp['contentLength'];
387-
while ($len && $buf=fread($this->_sock, $len)) {
387+
while ($len && ($buf=fread($this->_sock, $len)) !== false) {
388388
$len -= strlen($buf);
389389
$resp['content'] .= $buf;
390390
}

0 commit comments

Comments
 (0)