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

got the same issue, resolved in following way:

Zend_Controller_Router_Route_Regexnews/(\d+),(.+).htmlindexnewsshow

itemdescnews/%s,%s.html

patch

Fixed in r18294, see [ZF-7658].