ID: 42165 User updated by: ebalaskas at ebalaskas dot gr Reported By: ebalaskas at ebalaskas dot gr -Status: Feedback +Status: Open Bug Type: OpenSSL related Operating System: Linux Ubuntu 7.04 PHP Version: 4.4.7 New Comment:
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 ? Previous Comments: ------------------------------------------------------------------------ [2007-08-20 09:17:26] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi ------------------------------------------------------------------------ [2007-08-01 11:52:17] ebalaskas at ebalaskas dot gr 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 this bug report at http://bugs.php.net/?id=42165&edit=1