我正在使用 Zend Debugger 来调试基于 Zend 框架构建的 php 应用程序。目前我正在运行 1.10.6 版本。调试我的应用程序时,我收到此错误:
Compile Error: /var/www/Zend/ZendFramework-1.10.6/library/Zend/Loader/Autoloader.php line 36 - Cannot redeclare class Zend_Loader_Autoloader
这只是 Zend 框架中的一个错误,还是与我的 application.php 中的错误配置有关?
$paths = array(
realpath(dirname(__FILE__).'/../library'),
'.',
);
*/
defined('APPLICATION_PATH')
or define('APPLICATION_PATH', realpath(dirname(__FILE__).'/../application'));
defined('APPLICATION_ENV')
or define('APPLICATION_ENV', 'development');
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH.'/../library'),
)));
//require_once('Zend/Loader/Autoloader.php');
require_once('Zend/Application.php');
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH.'/configs/events.ini'
);
$application->bootstrap()->run();