Issues

ZF-2342: setPathDelimiter() should accept arrays of string as per the phpdoc description

Issue Type: Docs: Problem Created: 2007-12-20T14:23:00.000+0000 Last Updated: 2008-02-26T12:56:02.000+0000 Status: Resolved Fix version(s): - 1.0.4 (26/Feb/08)

Reporter: thing2b (thing2b) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Controller

Related issues: Attachments:

Description

The setPathDelimiter() in ZendFramework-1.0.3\library\Zend\Controller\Dispatcher\Abstract.php should accept an array but currently this is not allowed. Need to allow arrays to be passed in as per the comments.

/**
 * Set path delimiter
 *
 * Set the path delimiter to use in controllers. May be a single string or
 * an array of strings.
 *
 * @param string|array $spec
 * @return Zend_Controller_Dispatcher_Abstract
 */
public function setPathDelimiter($spec)
{
    if (!is_string($spec)) {
        require_once 'Zend/Controller/Dispatcher/Exception.php';
        throw new Zend_Controller_Dispatcher_Exception('Invalid path delimiter');
    }
    $this->_pathDelimiter = $spec;

    return $this;
}

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2008-02-14T11:57:02.000+0000

For now, we'll simply modify the phpdoc to reflect actual functionality.

Posted by Matthew Weier O'Phinney (matthew) on 2008-02-18T15:18:07.000+0000

docblock updated in trunk and release-1.0 branch.

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts