Skip to content

Commit

Permalink
disable require once call and the autoloader
Browse files Browse the repository at this point in the history
as zend classes are not in include path, any require once call will cause fatal error
  • Loading branch information
glensc committed Jul 24, 2017
1 parent 0f43e01 commit 58367c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions library/Zend/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 58367c7

Please sign in to comment.