diff options
author | Rasmus Lerdorf <rasmus@lerdorf.com> | 2019-05-21 14:44:11 -0700 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@lerdorf.com> | 2019-05-21 14:44:11 -0700 |
commit | 7b42cdf95ee91b723e7df51ac96f880de51f4591 (patch) | |
tree | 7e5f54f4e96e9f7920593fe3a471ea736fbb2ac3 /ext | |
parent | e6a191de1b73c902b631cb8f0f70ed58b81005d4 (diff) | |
download | php-git-7b42cdf95ee91b723e7df51ac96f880de51f4591.tar.gz |
Fix precedence issue causing sub-second timeouts to be 0 in
curl_multi_select
Diffstat (limited to 'ext')
-rw-r--r-- | ext/curl/multi.c | 2 |
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); |