From 6b306cddc1f25ecfe054b0a1c9d0dc3536da51f6 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 23 Apr 2012 20:31:36 -0700 Subject: Don't call ob_end_clean() if PHP >= 5.4. Fixes #1839. Thanks to Christopher Kunz and Avuton Olrich for the info. --- system/core/Kohana.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/system/core/Kohana.php b/system/core/Kohana.php index f7f6b326..96d969ed 100644 --- a/system/core/Kohana.php +++ b/system/core/Kohana.php @@ -525,8 +525,12 @@ abstract class Kohana_Core { $close(); } - // Store the Kohana output buffer - ob_end_clean(); + // Store the Kohana output buffer. Apparently there was a change in PHP + // 5.4 such that if you call this you wind up with a blank page. + // Disabling it for now. See ticket #1839 + if (version_compare(PHP_VERSION, "5.4", "<")) { + ob_end_clean(); + } } } -- cgit v1.2.3