Commit cc0e8fefd1f for php
commit cc0e8fefd1f9a5a2e161f258be1e1e9753580433
Author: Weilin Du <weilindu@php.net>
Date: Fri Nov 6 19:42:02 2026 +0800
[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.
diff --git a/NEWS b/NEWS
index 23af26473d0..78f010b74ce 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 88a91314afa..a1e30018cd6 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".