php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64629 function parameter not working
Submitted: 2013-04-11 13:02 UTC Modified: 2013-04-11 16:47 UTC
From: geoilie at yahoo dot com Assigned:
Status: Closed Package: IMAP related
PHP Version: 5.3.24 OS: CentOS 6.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: geoilie at yahoo dot com
New email:
PHP Version: OS:

 

 [2013-04-11 13:02 UTC] geoilie at yahoo dot com
Description:
------------
---
From manual page: http://www.php.net/function.imap-open#refsect1-function.imap-open-description
---
Function fails to connect to Exchange 2007-2010 IMAP or POP.
See related: https://bugs.php.net/bug.php?id=33500
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=161826

Problem still not solved.
Using the new DISABLE_AUTHENTICATOR parameter, the server ignores the options to  returns: "Array ( [0] => Unknown GSSAPI failure: An invalid name was supplied [1] => GSSAPI mechanism status: Hostname cannot be canonicalized [2]..."
Problem noted in support forums in many web applications that try to read an Exchange POP or IMAP mailbox: sugerCRM, GLPI, Sit, OsTicket, Kayako, etc.


Test script:
---------------
<?php
imap_open('{mailserver.com/novalidate-cert/ssl}','username','password',null,1,array(DISABLE_AUTHENTICATOR=>array('GSSAPI', 'PLAIN')));
var_dump(imap_errors());

	


Expected result:
----------------
bool(false) 
The code should open a connection string to the Exchange imap server.

Actual result:
--------------
array(6) { [0]=> string(52) "Unknown GSSAPI failure: An invalid name was supplied" [1]=> string(57) "GSSAPI mechanism status: Hostname cannot be canonicalized" [2]=> string(56) "Retrying PLAIN authentication after AUTHENTICATE failed." [3]=> string(56) "Retrying PLAIN authentication after AUTHENTICATE failed." [4]=> string(57) "Can not authenticate to IMAP server: AUTHENTICATE failed." [5]=> string(49) "[CLOSED] IMAP connection broken (server response)" } 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-11 16:47 UTC] geoilie at yahoo dot com
Dug some more and I see that the bug was solved in 5.3.3-22 and up.
 [2013-04-11 16:47 UTC] geoilie at yahoo dot com
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 17:01:30 2025 UTC