We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ab7b99e + 5ce73cc commit 05395a5Copy full SHA for 05395a5
1 file changed
Net/Socket.php
@@ -389,7 +389,7 @@ function write($data, $blocksize = null)
389
$written = @fwrite($this->fp, $data);
390
391
// Check for timeout or lost connection
392
- if (!$written) {
+ if ($written===false) {
393
$meta_data = $this->getStatus();
394
395
if (!is_array($meta_data)) {
@@ -413,7 +413,7 @@ function write($data, $blocksize = null)
413
$written = @fwrite($this->fp, substr($data, $pos, $blocksize));
414
415
416
417
418
419
0 commit comments