Skip to content

Commit 82e1a11

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 fee83db commit 82e1a11

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

library/Zend/Application.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ public function __construct($environment, $options = null, $suppressNotFoundWarn
7878
{
7979
$this->_environment = (string) $environment;
8080

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

8586
if (null !== $options) {
8687
if (is_string($options)) {

0 commit comments

Comments
 (0)