title: PHP imap_open() => [AUTHENTICATIONFAILED] for imap.gmail.com
body: <p>It's already several days that we have started experience issues with <code>imap_open</code> function when try to connect to <code>imap.gmail.com</code> it returns:</p>
  
  <pre><code>Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Invalid credentials (Failure)
  </code></pre>
  
  <p>Here is the sample of the code that I try to run:</p>
  
  <pre><code>imap_open("{imap.gmail.com:993/imap/ssl}INBOX", username, password, NULL, 1);
  </code></pre>
  
  <p>Can this be an issue with the versions of PHP/Open SSL? If yes how can I solve it?</p>