Skip to content

Commit

Permalink
curl_version関数の存在確認
Browse files Browse the repository at this point in the history
  • Loading branch information
yhira committed Feb 13, 2021
1 parent 5ef52cf commit fb035ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/open-graph.php
Expand Up @@ -325,8 +325,10 @@ public function valid() { return $this->_position < sizeof($this->_values); }
//curlのバージョンチェック
if ( !function_exists( 'is_nss_curl' ) ):
function is_nss_curl() {
$info = curl_version();
return $info['version'] === '7.19.7';
if (function_exists('curl_version')) {
$info = curl_version();
return $info['version'] === '7.19.7';
}
}
endif;

Expand Down

0 comments on commit fb035ae

Please sign in to comment.