From: ebalaskas at ebalaskas dot gr
Operating system: Linux Ubuntu 7.04
PHP version: 4.4.7
PHP Bug Type: *General Issues
Bug description: fsockopen ssl Operation now in progress (115)
Description:
------------
Linux Ubuntu 7.04
Apache/2.0.59
Php/4.4.7
Openssl/0.9.8e
All http (tcp 80) are ok,
All ssl (tcp 443) produce the below msg.
The Resource_id is null
Reproduce code:
---------------
<?php
$fp = fsockopen("ssl://www.example.com", 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);
}
fclose($fp);
}
?>
Expected result:
----------------
The page of www.example.com
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)
--
Edit bug report at http://bugs.php.net/?id=42165&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42165&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42165&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42165&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42165&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42165&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42165&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42165&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42165&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42165&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42165&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42165&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42165&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42165&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42165&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42165&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42165&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42165&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42165&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42165&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42165&r=mysqlcfg