|
...
|
...
|
@@ -115,7 +115,7 @@ class ImapClient { |
|
|
|
$bytesWritten = 0;
|
|
|
|
$maxW = $this->timeOut*10;
|
|
|
|
while ($bytesWritten < $totalBytes) {
|
|
|
|
$result = fwrite($this->socket, substr($cmd, $bytesWritten));
|
|
|
|
$result = @fwrite($this->socket, substr($cmd, $bytesWritten));
|
|
|
|
// 写失败了
|
|
|
|
if ($result === false) { return false; }
|
|
|
|
|
|
...
|
...
|
@@ -207,6 +207,8 @@ class ImapClient { |
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
throw new \Exception($this->host.' write error '.$cmd);
|
|
|
|
}
|
|
|
|
|
|
|
|
return $result;
|
...
|
...
|
|