From:             craig at craigfrancis dot co dot uk
Operating system: RedHat/CentOS release 6.4
PHP version:      5.3.22
Package:          IMAP related
Bug Type:         Bug
Bug description:Cannot open IMAP connections with SSL

Description:
------------
This is with the RPM install of PHP 5.3.3 from RedHat, so I realise I'm not

running the latest version, however I'm trying to find the source of the
issue 
(I believe it is a bug, rather than a config issue).

When opening a connection with the /ssl flag, it returns "Too many
arguments 
provided".

To reproduce:

<?php
$mbox = imap_open('{imap.domain.com:993/imap/ssl}INBOX', $user, $pass);
print_r(imap_errors());
?>

This results in the error message "Too many arguments provided".

Removing the "/ssl" flag:

<?php
$mbox = imap_open('{imap.domain.com:993/imap}INBOX', $user, $pass);
print_r(imap_errors());
?>

Still results in a failed connection (the remote server requires an ssl 
connection), but this kind of fixes the issue.

PHP info shows:

    IMAP c-Client Version => 2007e
    SSL Support => enabled
    Kerberos Support => enabled

Which confirms that SSL support is enabled, and the configure command 
includes:

    --with-imap=shared --with-imap-ssl

Do you know how I can debug further?

For reference a bug report has been raised on RedHat bugzilla:

    https://bugzilla.redhat.com/show_bug.cgi?id=919506


-- 
Edit bug report at https://bugs.php.net/bug.php?id=64402&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64402&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64402&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64402&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64402&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64402&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64402&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64402&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64402&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64402&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64402&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64402&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64402&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64402&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64402&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64402&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64402&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64402&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64402&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64402&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64402&r=mysqlcfg

Reply via email to