ZF-8428: Zend_Controller_Router_Route_Chain should call setMatchedPath($path)
It is currently not possible to chain more than two routes.Example with 3 routes:
$route = new Zend_Controller_Router_Route('example', array('controller' => 'error', 'action' => 'error')); $route2 = new Zend_Controller_Router_Route('buggy'); $route3 = new Zend_Controller_Router_Route('url'); $chain = $route->chain($route2->chain($route3)); $router->addRoute('example_route', $chain);
The route above does not match "example/buggy/url".
This is because Zend_Controller_Router_Route_Chain does not call setMatchedPath($path), meaning that the outer chain thinks that the inner chain did not match.
It seems tat this can be solved by calling $this->setMatchedPath($path) in match.