Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.0RC1, 1.5.0
-
Fix Version/s: 1.5.1
-
Component/s: Zend_Controller
-
Labels:None
-
Fix Version Priority:Should Have
Description
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.
Issue Links
| This issue is related to: | ||||
| ZF-2609 | ZCDispatcher_Standard shows notices when default module does not exist and/or was not set |
|
|
|
Please, see http://framework.zend.com/issues/browse/ZF-2609.