Properly clean output buffers.

If the php is setup to use output compression the zlib.output_compression buffer will be started by php and the starting level will be 1. This buffer cannot be cleaned, value stays 1 and we end up in a loop