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

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 [url][/url]
Try a CVS snapshot (php4): [url][/url]
Try a CVS snapshot (php5): [url][/url]
Fixed in CVS: [url][/url]
Fixed in release: [url][/url]
Need backtrace: [url][/url]
Try newer version: [url][/url]
Not developer issue: [url][/url]
Expected behavior: [url][/url]
Not enough info: [url][/url]
Submitted twice: [url][/url]
register_globals: [url][/url]
PHP 3 support discontinued: [url][/url]
Daylight Savings: [url][/url]
IIS Stability: [url][/url]
Install GNU Sed: [url][/url]
Floating point limitations: [url][/url]