| 
...
 | 
...
 | 
@@ -6,7 +6,7 @@ class ImapClient { | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     /**
 | 
| 
 | 
 | 
      * 资源
 | 
| 
 | 
 | 
      * @var
 | 
| 
 | 
 | 
      * @var resource|false
 | 
| 
 | 
 | 
      */
 | 
| 
 | 
 | 
     private $socket;
 | 
| 
 | 
 | 
 
 | 
| 
...
 | 
...
 | 
@@ -23,6 +23,7 @@ class ImapClient { | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     public function __construct(string $host){
 | 
| 
 | 
 | 
         $this->host = $host;
 | 
| 
 | 
 | 
         $this->socket = false;
 | 
| 
 | 
 | 
     }
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     public function open(){
 | 
| 
...
 | 
...
 | 
@@ -129,7 +130,7 @@ class ImapClient { | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     public function __destruct()
 | 
| 
 | 
 | 
     {
 | 
| 
 | 
 | 
         @fclose($this->socket);
 | 
| 
 | 
 | 
         if($this->socket) @fclose($this->socket);
 | 
| 
 | 
 | 
         unset($this->socket);
 | 
| 
 | 
 | 
         // TODO: Implement __destruct() method.
 | 
| 
 | 
 | 
     }
 | 
...
 | 
...
 | 
 |