View Single Post
  #7  
Old 02-09-2013, 10:06 PM
kpkammer kpkammer is offline
New Member
 
Join Date: Feb 2013
Posts: 2
Arrow Solution!

To fix this simply edit /system/core/Kohana.php around line 704:
PHP Code:
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 '';
        
        
// Reject it first
        
if ($last_name !== $class) {
            
$last_name $class;
            return 
FALSE;
        }
        
// Create dummy one if try again
        
Kohana_Log::add('debug''create dummy class: '.$class);
        eval(
"class $class { }");
    }
    
#############
    ## END FIX ##
    #############
    
return FALSE;

Reply With Quote