Make sure openssl is available. Props Robert Deaton and rob1n. fixes #3765

git-svn-id: http://svn.automattic.com/wordpress/trunk@4984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-07 04:16:06 +00:00
parent 8d7839b14c
commit 1f35a9de8f
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ function spawn_cron() {
if ($parts['scheme'] == 'https') { if ($parts['scheme'] == 'https') {
// support for SSL was added in 4.3.0 // support for SSL was added in 4.3.0
if (version_compare(phpversion(), '4.3.0', '>=')) { if (version_compare(phpversion(), '4.3.0', '>=') && function_exists('openssl_open')) {
$argyle = @fsockopen('ssl://' . $parts['host'], $_SERVER['SERVER_PORT'], $errno, $errstr, 0.01); $argyle = @fsockopen('ssl://' . $parts['host'], $_SERVER['SERVER_PORT'], $errno, $errstr, 0.01);
} else { } else {
return false; return false;
@ -188,4 +188,4 @@ function _upgrade_cron_array($cron) {
return $new_cron; return $new_cron;
} }
?> ?>