Skip to content

Commit 05395a5

Browse files
committed
Merge pull request #3 from rspadim/patch-1
problem with fwrite
2 parents ab7b99e + 5ce73cc commit 05395a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Net/Socket.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ function write($data, $blocksize = null)
389389
$written = @fwrite($this->fp, $data);
390390

391391
// Check for timeout or lost connection
392-
if (!$written) {
392+
if ($written===false) {
393393
$meta_data = $this->getStatus();
394394

395395
if (!is_array($meta_data)) {
@@ -413,7 +413,7 @@ function write($data, $blocksize = null)
413413
$written = @fwrite($this->fp, substr($data, $pos, $blocksize));
414414

415415
// Check for timeout or lost connection
416-
if (!$written) {
416+
if ($written===false) {
417417
$meta_data = $this->getStatus();
418418

419419
if (!is_array($meta_data)) {

0 commit comments

Comments
 (0)