ZF-11393: Zend_Controller_Router_Rewrite::assemble() should throw exception when userParams is not an array
Description
assemble method should throw an exception in case of null userParams
code
$this->getFrontController()->getRouter()->assemble(null)
will cause Fatal error: Unsupported operand types in /home/www/techi.cz/secret/library/Zend/Controller/Router/Rewrite.php on line 462
Comments
Posted by Adam Lundrigan (adamlundrigan) on 2011-05-30T16:23:21.000+0000
Attached patch: * Added is_array check to Zend_Controller_Router_Rewrite::assemble * Added unit test to Zend_Controller_Router_RewriteTest
Posted by Adam Lundrigan (adamlundrigan) on 2011-05-30T16:33:11.000+0000
Fixed in trunk r24085
Posted by Adam Lundrigan (adamlundrigan) on 2011-06-07T23:16:42.000+0000
Merged to release-1.11 in r24129