PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #29934 fsockopen() does not support SSL/TLS with shares OpenSSL extension
Submitted:1 Sep 2004 7:59pm UTC Modified: 1 Sep 2004 8:09pm UTC
From:mranner at jawa dot at Assigned to:
Status:Bogus Category:OpenSSL related
Version:4.3.8 OS:FreeBSD 4.10
View/Vote Developer Edit Submission

[1 Sep 2004 7:59pm UTC] mranner at jawa dot at
Description:
------------
fsockopen() does not support SSL/TLS with shared OpenSSL extension. PHP
4.3.8 build from FreeBSD Ports with shared extenstions. Extension is
loaded according phpinfo(). Squirrelmail and other applications cannot
use fsockopen() with tls. I need to compile PHP4 with the static OpenSSL
extension.

Reproduce code:
---------------
$imap_server_address = 'tls://cyrus';
$imap_port = 993;

$imap_stream = fsockopen ( $imap_server_address, $imap_port,
$error_number, $error_string, 15);

Expected result:
----------------
A successful TLS connection.

Actual result:
--------------
Warning: fsockopen(): no SSL support in this build
[1 Sep 2004 8:09pm UTC] pollita@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

It's known, it's been reported (many times) and can't be fixed within
the framework of PHP4.  PHP5 however abstracts transports out in a way
that makes it all work whether OpenSSL is compiled as a shared module or
staticly.

For PHP4, your only option is to compile the module staticly.  To bodge
dynamic registration of ssl:// and tls:// transports into PHP4 would
represent a major code change which will not happen within a point
release.
[3 Oct 2004 10:01am UTC] odip at bionet dot nsc dot ru
See FreeBSD PR: [PATCH] php4 openssl building static
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/72275

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC