Skip to content

Commit 54564c9

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: [HttpClient] Don't pass float to usleep()
2 parents 1156a88 + da8638f commit 54564c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Response/CurlResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ private static function select(ClientState $multi, float $timeout): int
353353
}
354354

355355
if ($multi->pauseExpiries && 0 < $timeout -= microtime(true) - $now) {
356-
usleep(1E6 * $timeout);
356+
usleep((int) (1E6 * $timeout));
357357
}
358358

359359
return 0;

Response/NativeResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ private static function select(ClientState $multi, float $timeout): int
366366
}
367367

368368
if (!$handles) {
369-
usleep(1E6 * $timeout);
369+
usleep((int) (1E6 * $timeout));
370370

371371
return 0;
372372
}

0 commit comments

Comments
 (0)