Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #51 from Taluu/fix-curl-verif
Browse files Browse the repository at this point in the history
Fix curl's version verification
  • Loading branch information
Taluu committed Jun 11, 2014
2 parents 8a82aca + 5d07845 commit f52135c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ElephantIO/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ private function handshake() {
$version = $version['version'];

// CURLOPT_CONNECTTIMEOUT_MS and CURLOPT_TIMEOUT_MS were only implemented on curl 7.16.2
if (version_compare($version, '7.16.2') > -1) {
$timeout *= 1000;
if (true === version_compare($version, '7.16.2', '<')) {
$timeout /= 1000;
$constants = array(CURLOPT_CONNECTTIMEOUT, CURLOPT_TIMEOUT);
}

Expand Down

0 comments on commit f52135c

Please sign in to comment.