Commit 1f362fb2 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #11 in ZP/z-push from...

Merge pull request #11 in ZP/z-push from bugfix/ZP-645-php-5.4-obstart-needs-an-extra-flag to develop

* commit '074cc4b9':
  fix(ZP-645): PHP 5.4+ ob_start() needs an extra flag to allow truncate.
parents 08dddcd7 074cc4b9
...@@ -43,7 +43,13 @@ ...@@ -43,7 +43,13 @@
* Consult LICENSE file for details * Consult LICENSE file for details
************************************************/ ************************************************/
ob_start(null, 1048576);
if (version_compare(phpversion(), '5.4.0') < 0) {
ob_start(null, 1048576);
}
else {
ob_start(null, 1048576, PHP_OUTPUT_HANDLER_STDFLAGS);
}
// ignore user abortions because this can lead to weird errors - see ZP-239 // ignore user abortions because this can lead to weird errors - see ZP-239
ignore_user_abort(true); ignore_user_abort(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment