Changeset View
Changeset View
Standalone View
Standalone View
externals/phpmailer/class.pop3.php
Context not available. | |||||
stream_set_timeout($this->pop_conn, $tval, 0); | stream_set_timeout($this->pop_conn, $tval, 0); | ||||
} else { | } else { | ||||
// Does not work on Windows | // Does not work on Windows | ||||
if (substr(PHP_OS, 0, 3) !== 'WIN') { | if (@substr(PHP_OS, 0, 3) !== 'WIN') { | ||||
socket_set_timeout($this->pop_conn, $tval, 0); | socket_set_timeout($this->pop_conn, $tval, 0); | ||||
} | } | ||||
} | } | ||||
Context not available. | |||||
* @return integer | * @return integer | ||||
*/ | */ | ||||
private function sendString ($string) { | private function sendString ($string) { | ||||
$bytes_sent = fwrite($this->pop_conn, $string, strlen($string)); | $bytes_sent = fwrite($this->pop_conn, $string, @strlen($string)); | ||||
return $bytes_sent; | return $bytes_sent; | ||||
} | } | ||||
Context not available. | |||||
* @return boolean | * @return boolean | ||||
*/ | */ | ||||
private function checkResponse ($string) { | private function checkResponse ($string) { | ||||
if (substr($string, 0, 3) !== '+OK') { | if (@substr($string, 0, 3) !== '+OK') { | ||||
$this->error = array( | $this->error = array( | ||||
'error' => "Server reported an error: $string", | 'error' => "Server reported an error: $string", | ||||
'errno' => 0, | 'errno' => 0, | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0