FIX Bug in php-imap library. Fatal error if imap connet fails
This commit is contained in:
parent
d82a8dc7b1
commit
411fbc1a04
@ -190,7 +190,7 @@ abstract class Protocol implements ProtocolInterface {
|
|||||||
STREAM_CLIENT_CONNECT,
|
STREAM_CLIENT_CONNECT,
|
||||||
stream_context_create($this->defaultSocketOptions($transport))
|
stream_context_create($this->defaultSocketOptions($transport))
|
||||||
);
|
);
|
||||||
stream_set_timeout($stream, $timeout);
|
//stream_set_timeout($stream, $timeout); // Hang id $strem empty and already done line 199
|
||||||
|
|
||||||
if (!$stream) {
|
if (!$stream) {
|
||||||
throw new ConnectionFailedException($errstr, $errno);
|
throw new ConnectionFailedException($errstr, $errno);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user