Skip to content

Commit

Permalink
Merge branch 'PHP-7.2' into PHP-7.3
Browse files Browse the repository at this point in the history
* PHP-7.2:
  Fix precedence issue causing sub-second timeouts to be 0 in curl_multi_select
  • Loading branch information
rlerdorf committed May 21, 2019
2 parents 97ba6b0 + 7b42cdf commit 2d29263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/curl/multi.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,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);
Expand Down

0 comments on commit 2d29263

Please sign in to comment.