imap_open("{myhost.com:143/imap}INBOX", "mylogin", "mypassword", 0, 0, ['DISABLE_AUTHENTICATOR' => ['GSSAPI', 'NTLM']]);
$err = imap_last_error();
% nc myhost.com 143
* OK IMAP4 ready
AAA CAPABILITY
* CAPABILITY IMAP4rev1 ID XLIST UIDPLUS UNSELECT MOVE LIST-STATUS STARTTLS LOGINDISABLED
AAA OK CAPABILITY completed