reassign 665197 libkohana2-php 2.3.4-1 thanks Hi,
On Thu, Mar 22, 2012 at 03:10:25PM +0000, Bernhard Schmidt wrote:
> After upgrading to PHP 5.4 (current wheezy) pnp4nagios displays an
> empty page for all URLs I can think of. There is nothing in the error
> log or any other logs I could think of, despite of having all
> error_reporting categories enabled.
Thanks for reporting this! Jörg Linge was able to track this down to a
call to ob_end_clean() in Kohana. Apparently, PHP 5.4 handles that
function a bit different than earlier versions. Changing that to
ob_end_flush() (in case there's something in the buffer) fixes that.
I'm reassigning to Kohana and will upload a fixed version shortly.
Cheers,
Sebastian
PS: Jörg, for the record, I've changed to patch to look like this:
--- a/system/core/Kohana.php
+++ b/system/core/Kohana.php
@@ -719,7 +719,17 @@ final class Kohana {
}
// Store the Kohana output buffer
- ob_end_clean();
+ if (($ob_len = ob_get_length()) !== FALSE)
+ {
+ if ($ob_len > 0)
+ {
+ ob_end_flush();
+ }
+ else
+ {
+ ob_end_clean();
+ }
+ }
}
}
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
signature.asc
Description: Digital signature

