Yes,
- I've tested my connection to gmail and it works fine
- I have tried ssl://imap.gmail.com:993 and it gave me the same result
As I was saying in my original post, I have my configuration working for some time so I guess that the configuration is OK. My guess is that an update to some PHP module have broken something. The problem is that I'm completely ignorant about PHP.
Which PHP modules are used for the connection (socket, ssl, ...)? I don't think it's an IMAP problem but the problem occurs with the connection to the server itself.
Is there a way to have more debug output for the connection to the server?