Skip to content

Possible way to deprecate dechunk filter - #22396

Closed
Sjord wants to merge 1 commit into
php:masterfrom
Sjord:deprecate-dechunk
Closed

Possible way to deprecate dechunk filter#22396
Sjord wants to merge 1 commit into
php:masterfrom
Sjord:deprecate-dechunk

Conversation

@Sjord

@Sjord Sjord commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Calls through the dechunk factory show the deprecation warning, but we expose chunked_filter_create and that is called directly in http_fopen_wrapper.c, so that it doesn't show the deprecation warning.

Related to #21983.

Calls through the dechunk factory show the deprecation warning, but we
expose chunked_filter_create and that is called directly in
http_fopen_wrapper.c, so that it doesn't show the deprecation warning.
@Sjord

Sjord commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

@bukka could you take a look at this?

@Sjord

Sjord commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

The dechunk filter is in the deprecations RFC, so this PR is waiting for the vote on that.

@mbeccati

Copy link
Copy Markdown
Contributor

Some userland libraries explicitly invoke it via stream filter functions, such as Symfony's HttpClient, php-http/message DechunkStream. These will need an alternative, such as decoding it using code written in PHP.

I don't think it is great to deprecate this without adding some functionality that allows exposing the functionality back to userland in a safer way.

@Sjord

Sjord commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

This didn't pass the vote in the RFC.

@Sjord Sjord closed this Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants