|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42165 fsockopen ssl Operation now in progress (115)
Submitted: 2007-08-01 11:52 UTC Modified: 2008-07-11 21:42 UTC
Avg. Score:4.3 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: ebalaskas at ebalaskas dot gr Assigned:
Status: Wont fix Package: OpenSSL related
PHP Version: 4.4.7 OS: Linux Ubuntu 7.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ebalaskas at ebalaskas dot gr
New email:
PHP Version: OS:


 [2007-08-01 11:52 UTC] ebalaskas at ebalaskas dot gr
Linux Ubuntu 7.04

All http (tcp 80) are ok,
All ssl (tcp 443) produce the below msg.

The Resource_id is null

Reproduce code:
$fp = fsockopen("ssl://", 443, $errno, $errstr);

echo "fp: " . $fp ."<br>\n";

if (!$fp) {
   echo "$errstr ($errno)<br>\n";
   echo $fp;
} else {
    $out = "GET / HTTP/1.1\r\n";
    $out .= "Host: ".$host."\r\n";
    $out .= "Connection: Close\r\n\r\n";

    fwrite($fp, $out);
    while (!feof($fp)) {
        echo fgets($fp, 128);

Expected result:
The page of

Actual result:
Warning: fsockopen() [function.fsockopen]: php_stream_sock_ssl_activate_with_method: failed to create an SSL context in /usr/local/apache2/htdocs/test.php on line 6

Warning: fsockopen() [function.fsockopen]: failed to activate SSL mode 1 in /usr/local/apache2/htdocs/test.php on line 6

Operation now in progress (115)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-20 09:36 UTC] ebalaskas at ebalaskas dot gr
isn't there any solution for v4 ?
i know all about for the v4 end of life,
but isn't there somehow a fix for this ?
 [2008-07-11 21:42 UTC]
We are sorry, but we can not support PHP 4 related problems anymore.
Momentum is gathering for PHP 6, and we think supporting PHP 4 will
lead to a waste of resources which we want to put into getting PHP 6

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 20:01:32 2024 UTC