[php-src] PR #17078: Fix curl_multi_exec() overflow message
| From: | cmb69 | Date: | Sat, 07 Dec 2024 14:02:31 +0000 |
| Subject: | [php-src] PR #17078: Fix curl_multi_exec() overflow message | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29924@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17078
Author: cmb69
As is, passing
2147484 as $timeout, throws a ValueError
stating the $timeout needs to be between 0 and 2147484, what is a confusing. Thus we
report the proper threshold as float.
While we're at it we also drop the superfluous (double) cast, and rely on C's
usual arithmetic conversions.
---
This is a follow-up on https://github.com/php/php-src/pull/15548/files#r1728773136
which also fixes a [MSVC C4305
warning](https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4305).