php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29934 fsockopen() does not support SSL/TLS with shares OpenSSL extension
Submitted: 2004-09-01 19:59 UTC Modified: 2004-09-01 20:09 UTC
From: mranner at jawa dot at Assigned:
Status: Not a bug Package: OpenSSL related
PHP Version: 4.3.8 OS: FreeBSD 4.10
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mranner at jawa dot at
New email:
PHP Version: OS:

 

 [2004-09-01 19:59 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-01 20:09 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.
 [2004-10-03 10:01 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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 13 04:01:26 2024 UTC