#27017 [NEW]: imap_open fails when php is built with ssl
From: jjb at bcc dot com Operating system: solaris 9 PHP version: 4.3.5RC1 PHP Bug Type: IMAP related Bug description: imap_open fails when php is built with ssl Description: imap_open fails: alpha# php /tmp/login.php Warning: imap_open(): Couldn't open stream {localhost:143}INBOX in /tmp/login.php on line 3 Reproduce code: --- ?php if($imap = imap_open({localhost:143}INBOX, junk, junk)) { print(OK\n); } ? Expected result: when i recompile php without this line: --with-imap-ssl=/usr/local/ssl alpha# php /tmp/login.php OK Actual result: -- see above. imap is imap-2004.RC4 all my imap client software works connecting to this server, on both ports 143 and 995 -- Edit bug report at http://bugs.php.net/?id=27017edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27017r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27017r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27017r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27017r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27017r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27017r=needscript Try newer version: http://bugs.php.net/fix.php?id=27017r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=27017r=support Expected behavior: http://bugs.php.net/fix.php?id=27017r=notwrong Not enough info:http://bugs.php.net/fix.php?id=27017r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=27017r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27017r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27017r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27017r=dst IIS Stability: http://bugs.php.net/fix.php?id=27017r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=27017r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27017r=float
#27017 [Fbk-Opn]: imap_open fails when php is built with ssl
ID: 27017 User updated by: jjb at bcc dot com Reported By: jjb at bcc dot com -Status: Feedback +Status: Open Bug Type: IMAP related Operating System: solaris 9 PHP Version: 4.3.5RC1 New Comment: this is the configure command for php: ./configure \ --enable-discard-path \ --enable-force-cgi-redirect \ --enable-ftp\ --enable-shared \ --enable-sockets\ --enable-static \ --enable-sysvsem\ --enable-sysvshm\ --enable-track-vars \ --with-apache2 \ --with-apxs2=/usr/local/apache2/bin/apxs\ --with-bz2=/usr/local \ --with-gdbm=/usr/local \ --with-gettext=/usr/local \ --with-imap-ssl=/usr/local/ssl \ --with-imap=/var/src/mail/imap-2004.RC4 \ --with-iodbc=/usr/local \ --with-jpeg-dir=/usr/local \ --with-ldap=/usr/local/openldap \ --with-mysql=/usr/local/mysql \ --with-ncurses=/usr/local \ --with-openssl=/usr/local/ssl \ --with-png-dir=/usr/local \ --with-readline \ --with-thread-safe-client \ --with-zlib-dir=/usr/local here's the command to build uw-imap: make gso PASSWDTYPE=pmb SSLTYPE=unix Previous Comments: [2004-01-23 02:00:19] [EMAIL PROTECTED] What was the FULL configure line? How was the c-client compiled? (mainly I'm interested if you compiled it with SSL support or not..) [2004-01-23 01:53:02] jjb at bcc dot com Description: imap_open fails: alpha# php /tmp/login.php Warning: imap_open(): Couldn't open stream {localhost:143}INBOX in /tmp/login.php on line 3 Reproduce code: --- ?php if($imap = imap_open({localhost:143}INBOX, junk, junk)) { print(OK\n); } ? Expected result: when i recompile php without this line: --with-imap-ssl=/usr/local/ssl alpha# php /tmp/login.php OK Actual result: -- see above. imap is imap-2004.RC4 all my imap client software works connecting to this server, on both ports 143 and 995 -- Edit this bug report at http://bugs.php.net/?id=27017edit=1
#27017 [Fbk-Opn]: imap_open fails when php is built with ssl
ID: 27017 User updated by: jjb at bcc dot com Reported By: jjb at bcc dot com -Status: Feedback +Status: Open Bug Type: IMAP related Operating System: solaris 9 PHP Version: 4.3.5RC1 New Comment: alpha# php /tmp/login.php Warning: imap_open(): Couldn't open stream {localhost:143}INBOX in /tmp/login.php on line 5 Notice: (null)(): Certificate failure for localhost: Server name does not match certificate: /C=US/ST=California/L=Solana Beach/O=BCC/OU=Internet Mail and Web Services/CN=alpha.bcc.com (errflg=2) in Unknown on line 0 Previous Comments: [2004-01-23 02:29:29] [EMAIL PROTECTED] Add this as first line in your script: error_reporting(E_ALL); And check what errors you get then. [2004-01-23 02:10:38] jjb at bcc dot com this is the configure command for php: ./configure \ --enable-discard-path \ --enable-force-cgi-redirect \ --enable-ftp\ --enable-shared \ --enable-sockets\ --enable-static \ --enable-sysvsem\ --enable-sysvshm\ --enable-track-vars \ --with-apache2 \ --with-apxs2=/usr/local/apache2/bin/apxs\ --with-bz2=/usr/local \ --with-gdbm=/usr/local \ --with-gettext=/usr/local \ --with-imap-ssl=/usr/local/ssl \ --with-imap=/var/src/mail/imap-2004.RC4 \ --with-iodbc=/usr/local \ --with-jpeg-dir=/usr/local \ --with-ldap=/usr/local/openldap \ --with-mysql=/usr/local/mysql \ --with-ncurses=/usr/local \ --with-openssl=/usr/local/ssl \ --with-png-dir=/usr/local \ --with-readline \ --with-thread-safe-client \ --with-zlib-dir=/usr/local here's the command to build uw-imap: make gso PASSWDTYPE=pmb SSLTYPE=unix [2004-01-23 02:00:19] [EMAIL PROTECTED] What was the FULL configure line? How was the c-client compiled? (mainly I'm interested if you compiled it with SSL support or not..) [2004-01-23 01:53:02] jjb at bcc dot com Description: imap_open fails: alpha# php /tmp/login.php Warning: imap_open(): Couldn't open stream {localhost:143}INBOX in /tmp/login.php on line 3 Reproduce code: --- ?php if($imap = imap_open({localhost:143}INBOX, junk, junk)) { print(OK\n); } ? Expected result: when i recompile php without this line: --with-imap-ssl=/usr/local/ssl alpha# php /tmp/login.php OK Actual result: -- see above. imap is imap-2004.RC4 all my imap client software works connecting to this server, on both ports 143 and 995 -- Edit this bug report at http://bugs.php.net/?id=27017edit=1