ezsystems/ezpublish — pull request #258 by jdespatis (2011-12-16 18:25:07+00:00)
Title: Move the response/output filter just before the print of the report, that way, the filter can use accumulator or append some bottom report

I really think it's useful to move this filter just above the report

In fact, think of some filters that may take some time or need to print some log, it's nice to have an accumulator to know the time consumed by this filter and some info in the full report

It's possible to use an accumulator or appendBottomReport in an OutputFilterName, but no more in this response/output filter which is a regression I think

Because actually, the filter is silence, we can't see anything in the log in the page

This code has been tested with Debug=inline style and with Debug=popup style

Strangely the latter works without any modification in lib/ezutils/ezdebug.php, eZDebug::printReport(), the modification in index.php seems enough

So please double check!

I was ready to send a pull to make OutputFilterName accept many classes to launch several filters, but no more needed with this nice listener / filter process!