com php-src: Fix precedence issue causing sub-second timeouts to be 0 in curl_multi_select: ext/curl/multi.c
| From: | Rasmus Lerdorf | Date: | Tue, 21 May 2019 21:44:11 +0000 |
| Subject: | com php-src: Fix precedence issue causing sub-second timeouts to be 0 in curl_multi_select: ext/curl/multi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106279@lists.php.net to get a copy of this message | ||
Commit: 7b42cdf95ee91b723e7df51ac96f880de51f4591
Author: Rasmus Lerdorf <rasmus@lerdorf.com> Tue, 21 May 2019 14:44:11 -0700
Parents: e6a191de1b73c902b631cb8f0f70ed58b81005d4
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7b42cdf95ee91b723e7df51ac96f880de51f4591
Log:
Fix precedence issue causing sub-second timeouts to be 0 in
curl_multi_select
Changed paths:
M ext/curl/multi.c
Diff:
diff --git a/ext/curl/multi.c b/ext/curl/multi.c
index 0d55e75..1d325bc 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);