if ($filename = Kohana::find_file($type, $file))
{
// Load the class
require $filename;
}
else
{
// The class could not be found
###############
## BEGIN FIX ##
###############
/* Avoid segmentation fault in Zend Guard (Original: http://blog.teatime.com.tw/1/post/403)
When ZendGuardLoader is enabled, it will try to load the same class again if does not exist, it will try a random name,
then segmentation fault. So, we keep the name first, then, create a dummy class for it. */
// Only check this if ZendGuardLoader exist
if (extension_loaded('Zend Guard Loader')) {
static $last_name = '';