ZF-2887: Zend_Controller triggers Notice:


Index: I:/xampp/php/PEAR/Zend15/library/Zend/Controller/Dispatcher/Standard.php

When there is not default module directory, it triggers a Notice:

Notice: Undefined index: default in I:\xampp\php\PEAR\Zend15\library\Zend\Controller\Dispatcher\Standard.php on line 383

It should raise an exception:

Index: I:/xampp/php/PEAR/Zend15/library/Zend/Controller/Dispatcher/Standard.php
--- I:/xampp/php/PEAR/Zend15/library/Zend/Controller/Dispatcher/Standard.php    (revision 8831)
+++ I:/xampp/php/PEAR/Zend15/library/Zend/Controller/Dispatcher/Standard.php    (working copy)
@@ -380,6 +380,10 @@
         $controllerDirs      = $this->getControllerDirectory();
         $this->_curModule    = $this->_defaultModule;
+        if (!in_array($this->_defaultModule, $controllerDirs)) {
+            throw new Zend_Controller_Exception('Default module \'' . $this->_defaultModule . '\' was not found in controller directory.');
+        }
         $this->_curDirectory = $controllerDirs[$this->_defaultModule];
         $module = $request->getModuleName();
         if ($this->isValidModule($module)) {

EDIT: no, this solution is wrong, but it should be handled somehow.


Scheduling for 1.5.1. This issue will only affect a small number of users, and the obvious solution until a "fix" is provided is to define a 'default' module, or to tell the dispatcher which module should be considered the default.

Fixed in trunk and 1.5 release branch

I'm assuming this fix is merged to the 1.5 release branch for release with 1.5.1. Please update JIRA if this is not the case.