From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.2.3 PHP Bug Type: IMAP related Bug description: imap_open() requires /novalidate-cert on non-ssl hosts
There is a bug in imap_connect(), it requests a SSL certificate, even when not told to do so. the code I use is: $host = "localhost:143"; $mbox = @imap_open("{".$host."}INBOX",$user,$pass); if(!$mbox) { echo "error!!<br />n"; echo imap_last_error(); die(); } the error message is: Certificate failure for localhost: unable to get local issuer certificate: /C=... I'm using a self signed certificate for the IMAP SSL. But, the server I use in port 143 doesn't use SSL. (SSL IMAP is on port 993) if i change the host line to: $host = "localhost:143/novalidate-cert"; it works. It worked fine in 4.2.2, after the upgrade (4.2.3) the mail service was broken. ******* the configuration: './configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '-- sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '-- libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/ com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-config-file-path=/etc' '-- enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline- optimization' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-gd' '-- with-gdbm' '--with-gettext' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '-- with-regex=system' '--with-ttf' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with- layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-ftp' '--enable-magic- quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '- -enable-track-vars' '--enable-trans-sid' '--without-oci8' '--with-imap' '--with-imap-ssl' '-- with-kerberos=/usr/kerberos' '--with-ldap=/usr' '--with-mysql=/usr' '--with-apxs=/usr/ sbin/apxs' c-client: IMAP c-Client Version 2001 (2001a) SSL Support enabled Kerberos Support enabled -- Edit bug report at http://bugs.php.net/?id=20605&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20605&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20605&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20605&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20605&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20605&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20605&r=support Expected behavior: http://bugs.php.net/fix.php?id=20605&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20605&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20605&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20605&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20605&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20605&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20605&r=isapi