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 Jun 15, 2015
1 parent 3a60b52 commit 6f5979e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/Zend/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ public function __construct($environment, $options = null)
{
$this->_environment = (string) $environment;

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

if (null !== $options) {
if (is_string($options)) {
Expand Down

0 comments on commit 6f5979e

Please sign in to comment.