Kohana::$is_cli check changed to the PHP_SAPI check for compatibility with 3.3 version#