Closed ideawu closed 9 years ago
An important bug fix is made:
--- a/api/php/SSDB.php +++ b/api/php/SSDB.php @@ -506,7 +506,7 @@ class SSDB try{ while(true){ $ret = @fwrite($this->sock, $s); - if($ret === false){ + if($ret === false || $ret === 0){ $this->close(); throw new SSDBException('Connection lost'); }
Because fwrite() will returns 0 on error!
If you are using(in some old versions)
if($ret == false){
It works exactly right! No worry.
An important bug fix is made:
Because fwrite() will returns 0 on error!