[php-src] master: [skip ci] Clarify curl_multi_exec() integer conversion errors
| From: | Weilin Du | Date: | Fri, 06 Nov 2026 11:43:05 +0000 |
| Subject: | [php-src] master: [skip ci] Clarify curl_multi_exec() integer conversion errors | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143365@lists.php.net to get a copy of this message | ||
Author: Weilin Du (LamentXU123)
Date: 2026-11-06T19:42:02+08:00
Commit: https://github.com/php/php-src/commit/cc0e8fefd1f9a5a2e161f258be1e1e9753580433
Raw diff: https://github.com/php/php-src/commit/cc0e8fefd1f9a5a2e161f258be1e1e9753580433.diff
[skip ci] Clarify curl_multi_exec() integer conversion errors
curl_multi_exec() accepts values such as '1', true, and null for
$still_running by converting them to int. Update UPGRADING and NEWS to
state that TypeError is thrown when the value cannot be converted to int.
Changed paths:
M NEWS
M UPGRADING
Diff:
diff --git a/NEWS b/NEWS
index 23af26473d04..78f010b74ce7 100644
--- a/NEWS
+++ b/NEWS
@@ -9,7 +9,8 @@ PHP NEWS
- Curl:
. Fixed curl_reset() retaining CURLOPT_PRIVATE after reset. (lacatoire)
- . curl_multi_exec() now throws a TypeError when still_running is not an int.
+ . curl_multi_exec() now throws a TypeError when $still_running cannot be
+ converted to an int.
(arshidkv12)
. Uploading multiple files with the same field name is now possible by
passing an array of CURLFile or CURLStringFile objects to
diff --git a/UPGRADING b/UPGRADING
index 88a91314afa0..a1e30018cd69 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -24,7 +24,8 @@ PHP 8.7 UPGRADE NOTES
did not function properly.
- Curl:
- . curl_multi_exec() now throws a TypeError when still_running is not an int.
+ . curl_multi_exec() now throws a TypeError when $still_running cannot be
+ converted to an int.
. Nested arrays in CURLOPT_POSTFIELDS now throw a TypeError, instead of being
silently converted to the string "Array".