Skip to content

Commit 6f5979e

Browse files
committed
disable require once call and the autoloader
as zend classes are not in include path, any require once call will cause fatal error
1 parent 3a60b52 commit 6f5979e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/Zend/Application.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ public function __construct($environment, $options = null)
7777
{
7878
$this->_environment = (string) $environment;
7979

80-
require_once 'Zend/Loader/Autoloader.php';
81-
$this->_autoloader = Zend_Loader_Autoloader::getInstance();
80+
// see https://github.com/zf1/zend-application/pull/2 for discussion
81+
// require_once 'Zend/Loader/Autoloader.php';
82+
// $this->_autoloader = Zend_Loader_Autoloader::getInstance();
8283

8384
if (null !== $options) {
8485
if (is_string($options)) {

0 commit comments

Comments
 (0)