-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[Zend Framework] Calling the self:: reference causes a stack overflow #976
Copy link
Copy link
Closed
Description
Using the Zend Framework 1.12. I am getting the following error:
HipHop Fatal error: Stack overflow in /var/www/library/Zend/Loader/Autoloader.php on line 116
Here is the code on line 116:
public static function autoload($class)
{
$self = self::getInstance(); ---- LINE:116-----
foreach ($self->getClassAutoloaders($class) as $autoloader) {
if ($autoloader instanceof Zend_Loader_Autoloader_Interface) {
if ($autoloader->autoload($class)) {
return true;
}
} elseif (is_array($autoloader)) {
if (call_user_func($autoloader, $class)) {
return true;
}
} elseif (is_string($autoloader) || is_callable($autoloader)) {
if ($autoloader($class)) {
return true;
}
}
}
return false;
}
And here is the getInstance code:
public static function getInstance()
{
if (null === self::$_instance) {
self::$_instance = new self();
}
return self::$_instance;
}
Reactions are currently unavailable