[BUGFIX] Endless loop in check for broken extensions 52/25152/2
authorOliver Hader <oliver@typo3.org>
Mon, 4 Nov 2013 13:02:43 +0000 (14:02 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 7 Nov 2013 09:15:56 +0000 (10:15 +0100)
commit3d3ab84e4b9adc6bbe798314c40f2874797628c2
tree52f277db80c1446968fa17ac854e05fb4b895b10
parent0ae50b5a52c2b052c9c247a9b7749c1058b4cba4
[BUGFIX] Endless loop in check for broken extensions

The check for broken extensions in the Install Tool checks for
PHP fatal errors, excludes possibly faulty extensions and
continues this process until all errors are gone or all
extensions have been marked as broken.

If PHP warnings (or any other content) are outputted directly
to the client, this will lead to a mixed data representation of
JSON encoded content and the plain text output, like e.g.
  Warning:  array_keys() expects parameter 1 to be array...
  "OK"

To avoid that, the output buffer needs to be cleaned.

Change-Id: I7efb0be23e1897af4d98c7c7726eec2003fb6296
Fixes: #53236
Releases: 6.2
Reviewed-on: https://review.typo3.org/25152
Reviewed-by: Philipp Gampe
Reviewed-by: Markus Klein
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/install/Classes/Controller/AjaxController.php