- use @ operator for fclose() on connection handle
| | |
| | | $buffer = fgets($this->fp, $size); |
| | | |
| | | if ($buffer === false) { |
| | | fclose($this->fp); |
| | | $this->fp = null; |
| | | @fclose($this->fp); |
| | | $this->fp = null; |
| | | break; |
| | | } |
| | | if (!empty($this->prefs['debug_mode'])) { |
| | |
| | | } else if ($res == 'BAD') { |
| | | return -2; |
| | | } else if ($res == 'BYE') { |
| | | fclose($this->fp); |
| | | @fclose($this->fp); |
| | | $this->fp = null; |
| | | return -3; |
| | | } |
| | |
| | | } |
| | | if ($error && preg_match('/^\* (BYE|BAD) /i', $string, $m)) { |
| | | if (strtoupper($m[1]) == 'BYE') { |
| | | fclose($this->fp); |
| | | @fclose($this->fp); |
| | | $this->fp = null; |
| | | } |
| | | return true; |
| | |
| | | } |
| | | if ($error && preg_match('/^\* (BYE|BAD) /i', $string, $m)) { |
| | | if (strtoupper($m[1]) == 'BYE') { |
| | | fclose($this->fp); |
| | | @fclose($this->fp); |
| | | $this->fp = null; |
| | | } |
| | | return true; |
| | |
| | | return $this->fp; |
| | | } |
| | | |
| | | fclose($this->fp); |
| | | @fclose($this->fp); |
| | | $this->fp = false; |
| | | |
| | | $this->error = "Authentication for $user failed (LOGIN): $line"; |