From 8de9fa5782e159f976013cc3a3face6d052ae95d Mon Sep 17 00:00:00 2001 From: kjdev Date: Wed, 12 Aug 2026 10:12:18 +0900 Subject: [PATCH 1/2] docs: clarify built-in MIME exclusion list description Fix wording and phrasing of the built-in list explanation. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4ffddcc..6980371 100644 --- a/README.md +++ b/README.md @@ -64,9 +64,10 @@ brotli.output\_compression\_dict | "" | PHP\_INI\_ALL * brotli.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 f761b4b3766fa540a4bbb6834973c1d699aa26e8 Mon Sep 17 00:00:00 2001 From: kjdev Date: Wed, 12 Aug 2026 10:12:25 +0900 Subject: [PATCH 2/2] test: add wildcard match test for built-in MIME exclusion list Rename ob_exclude_001.phpt to reflect that it exercises the built-in list without an ini setting, and add ob_exclude_004.phpt to cover wildcard matching (audio/*). Register the new test file in package.xml. --- package.xml | 1 + tests/ob_exclude_001.phpt | 2 +- tests/ob_exclude_004.phpt | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 tests/ob_exclude_004.phpt diff --git a/package.xml b/package.xml index 5dc7644..f4c40bd 100644 --- a/package.xml +++ b/package.xml @@ -183,6 +183,7 @@ + diff --git a/tests/ob_exclude_001.phpt b/tests/ob_exclude_001.phpt index 9d878b2..ad8c933 100644 --- a/tests/ob_exclude_001.phpt +++ b/tests/ob_exclude_001.phpt @@ -1,5 +1,5 @@ --TEST-- -brotli.output_compression_exclude_types exact match +built-in output compression exclude list: exact match (no ini set) --SKIPIF-- +--GET-- +a=b +--INI-- +brotli.output_compression=1 +--ENV-- +HTTP_ACCEPT_ENCODING=br +--FILE-- + +--EXPECT-- +hi