summaryrefslogtreecommitdiff
path: root/ext/curl
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@lerdorf.com>2019-05-21 14:44:11 -0700
committerRasmus Lerdorf <rasmus@lerdorf.com>2019-05-21 14:44:11 -0700
commit7b42cdf95ee91b723e7df51ac96f880de51f4591 (patch)
tree7e5f54f4e96e9f7920593fe3a471ea736fbb2ac3 /ext/curl
parente6a191de1b73c902b631cb8f0f70ed58b81005d4 (diff)
downloadphp-git-7b42cdf95ee91b723e7df51ac96f880de51f4591.tar.gz
Fix precedence issue causing sub-second timeouts to be 0 in
curl_multi_select
Diffstat (limited to 'ext/curl')
-rw-r--r--ext/curl/multi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curl/multi.c b/ext/curl/multi.c
index 0d55e75657..1d325bc329 100644
--- a/ext/curl/multi.c
+++ b/ext/curl/multi.c
@@ -233,7 +233,7 @@ PHP_FUNCTION(curl_multi_select)
}
#if LIBCURL_VERSION_NUM >= 0x071c00 /* Available since 7.28.0 */
- error = curl_multi_wait(mh->multi, NULL, 0, (unsigned long) timeout * 1000.0, &numfds);
+ error = curl_multi_wait(mh->multi, NULL, 0, (unsigned long) (timeout * 1000.0), &numfds);
if (CURLM_OK != error) {
SAVE_CURLM_ERROR(mh, error);
RETURN_LONG(-1);