Code
/**
* Closes all open output buffers, either by flushing or cleaning, and stores
* output buffer for display during shutdown.
*
* @param boolean disable to clear buffers, rather than flushing
* @return void
*/
public static function close_buffers($flush = TRUE)
{
if (ob_get_level() >= Kohana::$buffer_level)
{
// Set the close function
$close = ($flush === TRUE) ? 'ob_end_flush' : 'ob_end_clean';
while (ob_get_level() > Kohana::$buffer_level)
{
// Flush or clean the buffer
$close();
}
// Store the Kohana output buffer
ob_end_clean(); <=== PROBLEM HERE!!
}
}
Alles anzeigen
Der oben genannte Fehler wird bei mir durch das Entfernen der Zeile behoben. Jetzt stellt sich die Frage, warum ist es überhaupt ein Problem? Die Funktion ist immerhin eine offizielle PHP Funktion.
Netcup? Any comments?