From 24db3771173fdc20278f165f01e4cc1946e047a5 Mon Sep 17 00:00:00 2001 From: kjdev Date: Wed, 12 Aug 2026 10:28:30 +0900 Subject: [PATCH 1/2] docs: clarify built-in MIME exclusion list description --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c690c33..9dbfe56 100644 --- a/README.md +++ b/README.md @@ -88,9 +88,10 @@ zstd.output\_compression\_dict | "" | PHP\_INI\_ALL * zstd.output\_compression\_exclude\_types _string_ - Extension contains a built-in list of non-compressible MIME types. - The list can be found from phpinfo() output. If something is - missing, more MIME types can be added with this ini setting. + The extension contains a built-in list of non-compressible MIME + types. The list can be found in the phpinfo() output. If + something is missing, more MIME types can be added with this + ini setting. Comma-separated list of MIME types that should not be compressed by the transparent output handler. From 4b430dfd995f7758458411513f0445acaf5a1ff9 Mon Sep 17 00:00:00 2001 From: kjdev Date: Wed, 12 Aug 2026 10:28:44 +0900 Subject: [PATCH 2/2] test: add wildcard match test for built-in MIME exclusion list Also rename ob_exclude_001.phpt to reflect that it verifies the built-in list, not the exclude_types ini setting. --- package.xml | 1 + tests/ob_exclude_001.phpt | 2 +- tests/ob_exclude_005.phpt | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 tests/ob_exclude_005.phpt diff --git a/package.xml b/package.xml index 4fc5f39..5fb64df 100644 --- a/package.xml +++ b/package.xml @@ -171,6 +171,7 @@ + diff --git a/tests/ob_exclude_001.phpt b/tests/ob_exclude_001.phpt index 1ef421d..fb5fc6c 100644 --- a/tests/ob_exclude_001.phpt +++ b/tests/ob_exclude_001.phpt @@ -1,5 +1,5 @@ --TEST-- -zstd.output_compression_exclude_types exact match +built-in output compression exclude list: exact match (no ini set) --SKIPIF-- +--INI-- +zstd.output_compression=1 +--ENV-- +HTTP_ACCEPT_ENCODING=zstd +--GET-- +ob=024 +--FILE-- + +--EXPECT-- +hi