Skip to content

Gzdecode: Deprecate our gzip implementation#882

Merged
jtojnar merged 1 commit intosimplepie:masterfrom
jtojnar:deprecate-gzdecode
Sep 30, 2024
Merged

Gzdecode: Deprecate our gzip implementation#882
jtojnar merged 1 commit intosimplepie:masterfrom
jtojnar:deprecate-gzdecode

Conversation

@jtojnar
Copy link
Member

@jtojnar jtojnar commented Sep 14, 2024

PHP supports it natively since 5.4.

acaaa76 also started to use it, presumably to fix sites that were incorrectly declaring deflate method when they were using gzip.

And since we require PHP 7.2, and the zlib extension is already mandatory for the gzinflate and gzuncompress functions, let’s also remove the funcion_exists check.

@jtojnar jtojnar marked this pull request as ready for review September 29, 2024 14:43
@jtojnar jtojnar requested a review from Art4 September 29, 2024 14:48
Copy link
Contributor

@Art4 Art4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the CHANGELOG.md we should also add a note in the Changed section that now gzdecode() instead of SimplePie\Gzdecode is used.

@Art4 Art4 added this to the 1.9.0 milestone Sep 29, 2024
PHP supports it natively since 5.4.

acaaa76 also started to use it,
presumably to fix sites that were incorrectly declaring `deflate`
method when they were using `gzip`.

And since we require PHP 7.2, and the zlib extension is already
mandatory for the `gzinflate` and `gzuncompress` functions,
let’s also remove the `funcion_exists` check.
@jtojnar jtojnar requested a review from Art4 September 29, 2024 16:04
@jtojnar jtojnar merged commit bba928e into simplepie:master Sep 30, 2024
@jtojnar jtojnar deleted the deprecate-gzdecode branch September 30, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants