Am 03.04.2012 13:22, schrieb Sebastian Harl: Hello,
this patch does _not_ work for me. I do get output now, but I get everything (the whole page) exactly twice. Completely removing ob_end_clean() and not adding anything else fixes the issue for me, but I don't know about the disadvantages. Best Regards, Bernhard > 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(); > + } > + } > } > } > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org