facebook/hhvm — pull request #2923 by Aatch (2014-06-12 04:49:03+00:00)
Title: Ignore all output after request end

`register_postsend_function` allows user code to be run after the request has
be finished. However, because these functions are just arbitrary user code,
they can produce output themselves. There is no sensible way to handle output
at this stage, and it was causing a failure in the FastCGI transport.

This patch makes transports ignore all output once onSendEnd has be called.
This means that cli behaviour is unchanged.

Fixes #2882