#19522 [NEW]: open_imap() fails on an IMAP server capable of TLS
| From: | andrew-php at andrew dot net dot au | Date: | Fri, 20 Sep 2002 13:05:57 +0000 |
| Subject: | #19522 [NEW]: open_imap() fails on an IMAP server capable of TLS | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-19871@lists.php.net to get a copy of this message | ||
From: andrew-php@andrew.net.au
Operating system: Linux
PHP version: 4.2.3
PHP Bug Type: IMAP related
Bug description: open_imap() fails on an IMAP server capable of TLS
Hi,
I've got UW imapd running on the loopback interface on tcp/143 running
plain old IMAP.
When I try to connect using imap_open(), (and watch using tcpdump) I see
the IMAP server spit out it's banner, which includes STARTTLS in the
capabilities, and then I see a STARTTLS get issued. The imap_open() then
seems to get confused with the TLS stream and says it couldn't open the
stream.
I'm using the Debian PHP4 package, it was compiled with:
'../configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs'
'--with-regex=php' '--with-config-file-path=/etc/php4/apache'
'--disable-rpath' '--disable-debug' '--enable-memory-limit'
'--with-layout=GNU' '--enable-calendar' '--enable-sysvsem'
'--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid'
'--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db2'
'--with-iconv' '--enable-exif' '--enable-filepro'
'--enable-ftp'
'--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr'
'--enable-shmop' '--enable-sockets' '--enable-wddx'
'--disable-xml'
'--with-expat-dir=/usr' '--enable-yp' '--with-zlib'
'--without-pgsql'
'--with-openssl=/usr' '--disable-static' '--with-curl=shared,/usr'
'--with-dom=shared,/usr' '--with-zlib-dir=/usr'
'--with-gd=shared,/usr'
'--with-jpeg-dir=shared,/usr' '--with-xpm-dir=shared,/usr/X11R6'
'--with-png-dir=shared,/usr' '--with-freetype-dir=shared,/usr'
'--with-imap=shared,/usr' '--with-imap-ssl' '--with-ldap=shared,/usr'
'--with-mcal=shared,/usr' '--with-mhash=shared,/usr' '--with-mm'
'--with-mysql=shared,/usr' '--with-unixODBC=shared,/usr'
'--with-recode=shared,/usr' '--enable-xslt'
'--with-xslt-sablot=shared,/usr' '--with-snmp=shared'
'--enable-ucd-snmp-hack' '--with-sybase-ct=shared,/usr'
'--with-ttf=shared,/usr' '--with-t1lib=shared,/usr'
and includes IMAP SSL support.
--
Edit bug report at http://bugs.php.net/?id=19522&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19522&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19522&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19522&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19522&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19522&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19522&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19522&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19522&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19522&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19522&r=globals