From 82e1a11e3a31facf7cf15108cd254fb1381c58d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 4 May 2015 13:32:57 +0300 Subject: [PATCH] disable require once call and the autoloader as zend classes are not in include path, any require once call will cause fatal error --- library/Zend/Application.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/library/Zend/Application.php b/library/Zend/Application.php index 5ddee7d..4799cd1 100644 --- a/library/Zend/Application.php +++ b/library/Zend/Application.php @@ -78,9 +78,10 @@ public function __construct($environment, $options = null, $suppressNotFoundWarn { $this->_environment = (string) $environment; - require_once 'Zend/Loader/Autoloader.php'; - $this->_autoloader = Zend_Loader_Autoloader::getInstance(); - $this->_autoloader->suppressNotFoundWarnings($suppressNotFoundWarnings); + // see https://github.com/zf1/zend-application/pull/2 for discussion + // require_once 'Zend/Loader/Autoloader.php'; + // $this->_autoloader = Zend_Loader_Autoloader::getInstance(); + // $this->_autoloader->suppressNotFoundWarnings($suppressNotFoundWarnings); if (null !== $options) { if (is_string($options)) {