ZF-1889: Bug on Zend_Controller_Router_Route::assemble which makes to not be possible to assembe url's using a different route

Issue Type: Bug Created: 2007-08-29T11:07:50.000+0000 Last Updated: 2008-03-21T16:25:20.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Cristian Bichis (avantis) Assignee: Michal Minicki (martel) Tags: - Zend_Controller

Related issues: Attachments:


foreach (array_reverse($url, true) as $key => $value) { if ($flag || !isset($this->_parts[$key]['name']) || $value !== $this->getDefault($this->_parts[$key]['name'])) { $return = '/' . $value . $return; $flag = true; } }

    return trim($return, '/');

Should be changed to this:

    foreach (array_reverse($url, true) as $key => $value) {
        if ($flag || !isset($this->_parts[$key]['name']) || $value !== $this->getDefault($this->_parts[$key]['name'])) {
            $return = $this->_urlDelimiter . $value . $return;
            $flag = true;

    return trim($return, $this->_urlDelimiter);

Otherwise won't be generated a proper url if we going to use our own Router, with our own _urlDelimiter;


Posted by Bill Karwin (bkarwin) on 2007-08-31T18:19:45.000+0000

Assign to Matthew.

Posted by Matthew Weier O'Phinney (matthew) on 2007-09-14T14:48:31.000+0000

Assigning to Martel

Posted by Michal Minicki (martel) on 2007-09-16T10:52:06.000+0000

Good catch, Cristian. Fixed on trunk. Thanks.

Posted by Darby Felton (darby) on 2007-09-18T12:11:21.000+0000

Fixes 1.1.0 but not also 1.0.2 until changes are merged to release-1.0 branch

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.