cakephp/cakephp — pull request #5261 by sadapon2008 (2014-11-26 08:41:28+00:00)
Title: an unnecessary E_NOTICE caused by CakeResponse::download()

Fix an unnecessary E_NOTICE when CakeResponse::download() is called without CakeResponse::compress().

ob_start() is called only if CakeResponse::compress() is called.
But, ob_flush() is always called in CakeResponse::_flushBuffer() if CakeResponse::download() is called.
It causes an unnecessary E_NOTICE and the following message is passed to ErrorHandler::handleError():

```
Notice:ob_flush() [ref.outcontrol]: failed to flush buffer. No buffer to flush
```

This resolves it.