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 Apr 30, 2019
1 parent fee83db commit 82e1a11
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 82e1a11

Please sign in to comment.