ID:               33500
 Updated by:       paj...@php.net
 Reported By:      ed2019 at columbia dot edu
-Status:           No Feedback
+Status:           Feedback
 Bug Type:         Feature/Change Request
 Operating System: *
 PHP Version:      5.2.9
 Assigned To:      pajoye
 New Comment:

It sounds like the patch was not applied then. It clearly takes 3 or 6
parameters:
+       if (zend_parse_parameters(argc TSRMLS_CC, "sss|lla", &mailbox,
&mailbox_len, &user, &user_len,
+               &passwd, &passwd_len, &flags, &retries, &params) == FAILURE) {

Can you verify that the patch was actually applied?


Previous Comments:
------------------------------------------------------------------------

[2009-10-27 11:19:12] b dot parnell at abertay dot ac dot uk

I have tried the patch and keep getting the error:

Warning: Wrong parameter count for imap_open()

I am using Ubuntu 9.04 and am compiling against the php 5.3.0 source
with the associated patch applied and with the 

./configure --with-imap --with-kerberos --with-imap-ssl 

initial command, make clean;make all;make install is the next commands
I execute.

I have also tried the source 5.3.1RC2 and this gives the error:

Warning: imap_open() expects at most 5 parameters, 6 given

If someone has managed to get this to work please provide a copy of the
binaries until the release is rolled out to apt.

Am I missing something here?

Best Regards,
Bill

------------------------------------------------------------------------

[2009-10-05 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2009-09-27 16:42:42] paj...@php.net

Please try this patch: http://pierre.libgd.org/patches/bug33500.txt
(against PHP 5.3). It adds a parameter option to imap_open. For now only
'DISABLE_AUTHENTICATOR' is supported. Example usages:

$im = imap_open($hostname, $username, $password, NULL, 1,
array('DISABLE_AUTHENTICATOR' => array('GSSAPI', 'NTLM')));


$im = imap_open($hostname, $username, $password, NULL, 1,
array('DISABLE_AUTHENTICATOR' => 'NTLM'));

To disable respectively GSSAPI and NTLM or only NTLM.

------------------------------------------------------------------------

[2009-09-15 20:13:13] haggis at shaz-bot dot com

any ETA of when this will be checked into SVN (and what files to pull)?
 We have run into this exact problem when we upgraded to Exchange 2007.

------------------------------------------------------------------------

[2009-09-08 12:47:54] 14908832 at sun dot ac dot za

I had a similar problem, which I thought was caused by this bug/lack of
feature, but was solved by a comment I found at the PHP manual's
function description of imap_open. It merely required me to add '/user='
to the end of my list of protocols. I'm not sure whether this directly
relates to this problem, but I hope it helps someone.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/33500

-- 
Edit this bug report at http://bugs.php.net/?id=33500&edit=1

Reply via email to