]> granicus.if.org Git - php/commitdiff
Fix precedence issue causing sub-second timeouts to be 0 in
authorRasmus Lerdorf <rasmus@lerdorf.com>
Tue, 21 May 2019 21:44:11 +0000 (14:44 -0700)
committerRasmus Lerdorf <rasmus@lerdorf.com>
Tue, 21 May 2019 21:44:11 +0000 (14:44 -0700)
curl_multi_select

ext/curl/multi.c

index 0d55e756578923e96752661e55928e81a0ebb9c0..1d325bc329a1258fdada2d9b897eff18e9f23232 100644 (file)
@@ -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);