Skip to content

Commit 7b42cdf

Browse files
committed
Fix precedence issue causing sub-second timeouts to be 0 in
curl_multi_select
1 parent e6a191d commit 7b42cdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/curl/multi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ PHP_FUNCTION(curl_multi_select)
233233
}
234234

235235
#if LIBCURL_VERSION_NUM >= 0x071c00 /* Available since 7.28.0 */
236-
error = curl_multi_wait(mh->multi, NULL, 0, (unsigned long) timeout * 1000.0, &numfds);
236+
error = curl_multi_wait(mh->multi, NULL, 0, (unsigned long) (timeout * 1000.0), &numfds);
237237
if (CURLM_OK != error) {
238238
SAVE_CURLM_ERROR(mh, error);
239239
RETURN_LONG(-1);

0 commit comments

Comments
 (0)