Pagina 2 van 2

Re: foto gallery gezocht

Geplaatst: 20 jul 2012, 14:40
door BMaster
het probleem is Zend Guard, blijkbaar werkt G3 daar niet mee samen ...

Je moet in het bestand system/core/Kohana.php vanaf regel 700 onderstaande code toegevoegen, en dan lukt het wel. Upgraden naar 3.0.4 werkt echter nog steeds niet, dat heb ik dus maar even terug doorgemailed naar de hoster...

Code: Selecteer alles

 // The class could not be found
            // twu2 begin
         // avoid segmentation fault in Zend Guard
         // because when ZendGuardLoader enable, it will try to load the same class again if it's not exist, then... it will try a random name, then segmentation fault
         // so we keep the name first, then if it try again
         // 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 { }");
         }
         // twu2 end
         return FALSE;