Skip to content

Commit f52135c

Browse files
committed
Merge pull request Wisembly#51 from Taluu/fix-curl-verif
Fix curl's version verification
2 parents 8a82aca + 5d07845 commit f52135c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/ElephantIO/Client.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ private function handshake() {
314314
$version = $version['version'];
315315

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

0 commit comments

Comments
 (0)