# [PATCH] Apache2Handler - Adding Output Filters

- Thread: https://externals.io/message/9408
- Original archive: https://news-web.php.net/php.internals/9408
- Started by Paul Querna on 2004-04-20T05:39:18+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #9408 — Paul Querna — 2004-04-20T05:39:18+00:00

URL: https://externals.io/message/9408#9408

I added two new functions for handling output filters in the Apache2
Handler SAPI:

bool apache_add_output_filter(string filter_name) - Attempts to add the
named filter to the Filter Chain.

array apache_get_output_filters() - Returns an array of all Active
Output filters for this request.

The ability to add an output filter is very helpful in the apache 2
model.  For example with this I was able to add an XSLT output filter
that I use in other areas to render XML generated from PHP to HTML.

The attached patches are for both PHP4 CVS and PHP5 CVS. They are also
online at: http://force-elite.com/~chip/patches/php-src/apache2-filters/

These are my first Patches for PHP. I think they are done correctly, but
feedback is very welcome.

-Paul Querna
