ZF-5967: Regex route does not assemble url when urlOptions is using associative arrays
Description
Normally when using url view helper
$this->url(array('foo' => 'bar'))
associative array is being used
However when using this with route
Zend_Controller_Router_Route_Regexabc/([0-9a-z\-]{3,40}).htmlabcindex1abc/%s.html
Too few arguments exception is thrown in Zend_Controller_Router_Route_Regex, because associative array can not be put in vsprintf() therefore i suggest treat urlOptions with array_values() which return zero-based index array which is suitable for vsprintf()
Comments
Posted by Jakub Igla (qba_rox) on 2009-03-13T09:10:09.000+0000
got the same issue, resolved in following way:
Zend_Controller_Router_Route_Regexnews/(\d+),(.+).htmlindexnewsshow
itemdescnews/%s,%s.html
Posted by Michal Vrchota (techi) on 2009-06-22T13:08:39.000+0000
patch
Posted by Jan Pieper (jpieper) on 2009-09-18T15:40:47.000+0000
Fixed in r18294, see [ZF-7658].