FIX Bug in php-imap library. Fatal error if imap connet fails

This commit is contained in:
Laurent Destailleur 2023-02-08 00:13:42 +01:00
parent d82a8dc7b1
commit 411fbc1a04

View File

@ -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);