Skip to content

Commit a5dc877

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [HttpClient] Don't pass float to usleep()
2 parents 0aba0c1 + 54564c9 commit a5dc877

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
@@ -346,7 +346,7 @@ private static function select(ClientState $multi, float $timeout): int
346346
}
347347

348348
if ($multi->pauseExpiries && 0 < $timeout -= microtime(true) - $now) {
349-
usleep(1E6 * $timeout);
349+
usleep((int) (1E6 * $timeout));
350350
}
351351

352352
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)