ID:               33500
 Comment by:       nick at mailtrust dot com
 Reported By:      ed2019 at columbia dot edu
 Status:           Feedback
 Bug Type:         Feature/Change Request
 Operating System: *
 PHP Version:      5.2.9
 Assigned To:      pajoye
 New Comment:

It looks like you may have forgotten to add the following to your
patch:

Index: php_imap.c
===================================================================
--- php_imap.c        (revision 3434)
+++ php_imap.c        (working copy)
@@ -105,6 +105,7 @@
ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_open, 0, 0, 3)
       ZEND_ARG_INFO(0, mailbox)
       ZEND_ARG_INFO(0, user)
       ZEND_ARG_INFO(0, password)
       ZEND_ARG_INFO(0, options)
       ZEND_ARG_INFO(0, n_retries)
+      ZEND_ARG_INFO(0, params)
ZEND_END_ARG_INFO()

This should allow for a max of 6 arguments instead of just 5.


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

[2009-10-27 11:24:31] paj...@php.net

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?

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

[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.

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

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