Suppress fwrite() notice when not all bytes could be written.
parent
3aad065e41
commit
1fb1722f49
|
@ -30,7 +30,7 @@ class ProtocolStreamWriter implements ProtocolWriter
|
|||
$totalBytesWritten = 0;
|
||||
|
||||
while ($totalBytesWritten < $msgSize) {
|
||||
$bytesWritten = fwrite($this->output, substr($data, $totalBytesWritten));
|
||||
$bytesWritten = @fwrite($this->output, substr($data, $totalBytesWritten));
|
||||
if ($bytesWritten === false) {
|
||||
throw new Error('Could not write message.');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue