summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c9089cd)
raw | patch | inline | side by side (parent: c9089cd)
author | Federico <federicot@gmail.com> | |
Fri, 29 Jun 2012 17:42:05 +0000 (19:42 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 29 Jun 2012 19:43:53 +0000 (21:43 +0200) |
debian/patches/02-php5.4.diff | patch | blob | history |
index 99226aa3919fa6dd2b4d965ceb2d0dbf56befc42..6d389d9a9a6819a8bacaa003974c9a94a42232e1 100644 (file)
Description: Fix for PHP 5.4.
PHP 5.4 seems to handle ob_end_clean() a bit different than previous
versions.
-Author: Sebastian Harl <tokkee@debian.org>
+Author: Sebastian Harl <tokkee@debian.org>, Federico <federicot@gmail.com>
--- a/system/core/Kohana.php
+++ b/system/core/Kohana.php
-@@ -719,7 +719,17 @@ final class Kohana {
+@@ -692,10 +692,9 @@
+ Event::run('system.send_headers');
+ }
+
+- self::$output = $output;
+-
+- // Set and return the final output
+- return self::$output;
++ // Set the final output
++ self::$output = $output;
++ return TRUE;
+ }
+
+ /**
+@@ -719,7 +719,7 @@
}
// 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();
-+ }
-+ }
++ ob_end_flush();
}
}
+