[HttpFoundation] added missing support for the new output API in PHP 5.4+