PHP 8.5: Conditionally call deprecated functions#937
Merged
jtojnar merged 4 commits intosimplepie:masterfrom Sep 2, 2025
Merged
PHP 8.5: Conditionally call deprecated functions#937jtojnar merged 4 commits intosimplepie:masterfrom
jtojnar merged 4 commits intosimplepie:masterfrom
Conversation
Alkarex
added a commit
to FreshRSS/simplepie
that referenced
this pull request
Sep 12, 2025
* bump SimplePie::VERSION to 1.9.0 * bump SimplePie::VERSION to 1.9.0 * Add CHANGELOG for 1.8.1 section * Parenthesize author and PR link * import changelog changes from simplepie#923 * Add 1.9.0 section, update unreleased section * improve changelog * Add missing authors of changes * PHP 8.5: Conditionally call deprecated functions (simplepie#937) Several PHP functions that have not been doing anything since PHP 8.0/8.1 will be deprecated in PHP 8.5 and will thus be throwing warnings: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_no-op_functions_from_the_resource_to_object_conversion To solve this while supporting multiple versions of PHP, they can be called conditionally based on a PHP version check. This PR adds this for affected functions throughout the SimplePie codebase. * Update release date --------- Co-authored-by: Art4 <art4@wlabs.de> Co-authored-by: Tobias Bäthge <git@tobias.baethge.com> Co-authored-by: Artur Weigandt <Art4@users.noreply.github.com>
Alkarex
added a commit
to Alkarex/FreshRSS
that referenced
this pull request
Sep 12, 2025
Main change is simplepie/simplepie#937 (PHP 8.5: Conditionally call deprecated functions)
Alkarex
added a commit
to FreshRSS/FreshRSS
that referenced
this pull request
Sep 12, 2025
Main change is simplepie/simplepie#937 (PHP 8.5: Conditionally call deprecated functions) P.S. a sync with SimplePie upstream was already done recently, hence the limited changes: * #7775
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Several PHP functions that have not been doing anything since PHP 8.0/8.1 will be deprecated in PHP 8.5 and will thus be throwing warnings: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_no-op_functions_from_the_resource_to_object_conversion
To solve this while supporting multiple versions of PHP, they can be called conditionally based on a PHP version check.
This PR adds this for affected functions throughout the SimplePie codebase.