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

Commit

Permalink
Fix version_compare usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Taluu committed Jun 11, 2014
1 parent a371be9 commit 5d07845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ElephantIO/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ 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) {
if (true === version_compare($version, '7.16.2', '<')) {
$timeout /= 1000;
$constants = array(CURLOPT_CONNECTTIMEOUT, CURLOPT_TIMEOUT);
}
Expand Down

0 comments on commit 5d07845

Please sign in to comment.