From: php at hyperion dot ath dot cx
Operating system: FreeBSD 5.1p10
PHP version: 4CVS-2003-10-30 (stable)
PHP Bug Type: IMAP related
Bug description: TLS is broken
Description:
------------
tls:// doesn't work on Port 143 as it should.
It works like ssl:// on Port 993 only. This is wrong, and it seems TLS
doesnt really initiate STARTTLS but normal SSL.
tls:// should work on Port 143.
Tested this on 4.3.4RC3 and 2003-10-30stable.
Reproduce code:
---------------
dumb fsockopen=("tls://bla",143);
will return fsockopen(): SSL operation failed with code 1. OpenSSL Error
messages: error:1408F10B:SSL routines:func(143):reason(267)
Warning: fsockopen(): php_stream_sock_ssl_activate_with_method: SSL
handshake/connection failed
Works with Port 993
Expected result:
----------------
No errors. Working on Port 143
--
Edit bug report at http://bugs.php.net/?id=26040&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26040&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26040&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26040&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26040&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26040&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26040&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26040&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26040&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26040&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26040&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26040&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26040&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26040&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26040&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26040&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26040&r=float