Bug 919506
| Summary: | Cannot open IMAP connections with SSL in PHP | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Craig Francis <craig> |
| Component: | php | Assignee: | Remi Collet <rcollet> |
| Status: | CLOSED NOTABUG | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.3 | CC: | craig, rcollet |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-03-11 13:01:53 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
I confirm that imap extension is build with ssl and kerberos support. From "php -i" output: IMAP c-Client Version => 2007e SSL Support => enabled Kerberos Support => enabled I cannot reproduce this problem. Please check the output of "php -i" or phpinfo() (the IMAP section) Thanks for checking, you are right, this is not a bug with the RedHat RPM. I have since found that the password I was providing (stored in a separate text file), contained a newline character by mistake. I still believe this is a bug, but one that PHP should deal with: https://bugs.php.net/bug.php?id=64402 Thanks for reporting this minor issue to PHP upstream.
As your problem is explained / solved, I close this bug.
If this issue is critical or in any way time sensitive, please raise a ticket through your regular Red Hat support channels to make certain it receives the proper attention and prioritization to assure a timely resolution.
For information on how to contact the Red Hat production support team, please visit:
https://www.redhat.com/support/process/production/#howto
|
When opening a connection with the /ssl flag returns "Too many arguments provided". It appears that the "php-imap" extension has not been compiled with SSL support. Package: php-imap-5.3.3-14.el6_3.x86_64 --- 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. When compiling PHP, I suspect the additional flags should be given: http://www.php.net/manual/en/imap.installation.php > Note: Depending on how the c-client was configured, > you might also need to add --with-imap-ssl=/path/ > and/or --with-kerberos=/path/ to the PHP configure line.