ID: 20605
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Bogus
Bug Type: IMAP related
Operating System: Linux
PHP Version: 4.2.3
New Comment:
This is how c-client works. Not PHP bug.
Previous Comments:
------------------------------------------------------------------------
[2002-11-24 02:24:54] [EMAIL PROTECTED]
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 this bug report at http://bugs.php.net/?id=20605&edit=1