Commit 5b387b78e01 for php.net
commit 5b387b78e0110e476199cda93090c60de318cbde
Author: Weilin Du <weilindu@php.net>
Date: Sun Sep 6 19:48:36 2026 +0800
[skip ci] Add NEWS and UPGRADING entries for #23202
diff --git a/NEWS b/NEWS
index f3c9b6ee73b..89603cf7c5e 100644
--- a/NEWS
+++ b/NEWS
@@ -346,6 +346,10 @@ PHP NEWS
(Girgias)
- Standard:
+ . Passing an object as the $data argument to http_build_query() is now
+ deprecated. The interpretation of object values within $data as arrays
+ is also deprecated. Convert objects to arrays with get_object_vars()
+ before calling the function. (Girgias)
. Added the "filter.max_filter_count" stream context option for php://filter
URLs. Using more than 16 filters without configuring this option is now
deprecated. (Sjoerd Langkemper)
diff --git a/UPGRADING b/UPGRADING
index fe6395dad74..20bff056dce 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -624,6 +624,11 @@ PHP 8.6 UPGRADE NOTES
. Passing an object to array_walk{_recursive} is now deprecated. Use
get_object_vars() on the object instead.
RFC: https://wiki.php.net/rfc/deprecations_php_8_6#passing_objects_for_array_parameter_of_array_walk_and_array_walk_recursive
+ . Passing an object as the $data argument to http_build_query() is now
+ deprecated. The interpretation of object values within $data as arrays
+ is also deprecated. Convert objects to arrays with get_object_vars()
+ before calling the function.
+ RFC: https://wiki.php.net/rfc/deprecations_php_8_6#passing_objects_for_data_parameter_of_http_build_query
. The is_double() function is now deprecated. Use is_float() instead.
RFC: https://wiki.php.net/rfc/deprecations_php_8_6#deprecate_is_double
. The is_long() and is_integer() functions are now deprecated. Use is_int()