[wp-trac] [WordPress Trac] #63061: Prepare for PHP 8.5
WordPress Trac
noreply at wordpress.org
Wed Sep 3 12:16:32 UTC 2025
#63061: Prepare for PHP 8.5
-----------------------------+--------------------------------
Reporter: johnbillion | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.9
Component: General | Version:
Severity: normal | Resolution:
Keywords: php85 has-patch | Focuses: php-compatibility
-----------------------------+--------------------------------
Comment (by SergeyBiryukov):
In [changeset:"60703" 60703]:
{{{
#!CommitTicketReference repository="" revision="60703"
Code Modernization: Address no-op function deprecations in PHP 8.5.
Several PHP functions that have not been doing anything since PHP 8.0/8.1,
specifically:
* `finfo_close()` since the `ext/fileinfo` migration in PHP 8.1
* `xml_parser_free()` since the `ext/xml` migration in PHP 8.0
* `curl_close()` since the `ext/curl` migration in PHP 8.0
* `curl_share_close()` since the `ext/curl` migration in PHP 8.0
* `imagedestroy()` since the `ext/gd` migration in PHP 8.0
will be deprecated in PHP 8.5 and will thus be throwing warnings.
This commit adds conditional checks to only call these functions on the
relevant PHP versions.
Reference: [https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_no-
op_functions_from_the_resource_to_object_conversion PHP RFC: Deprecations
for PHP 8.5: Deprecate no-op functions from the resource to object
conversion].
Props TobiasBg, SergeyBiryukov.
See #63061.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63061#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list