ZF-3497: Zend_Controller_Action_Helper_Redirector::setCode() accepts integer values only. Doc's show string.

Issue Type: Improvement Created: 2008-06-23T10:05:30.000+0000 Last Updated: 2008-11-13T14:09:57.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Daniel Skinner (skina) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Controller

Related issues: - ZF-4149




The issue is: $this->_redirector->setCode('303')

The method definition:

protected function _checkCode($code)
    if (!is_int($code) || (300 > $code) || (307 < $code)) {
    return true;

Simply change the Docs to read The issue is: $this->_redirector->setCode(303)


Posted by old of Satoru Yoshida ( on 2008-09-01T03:28:45.000+0000

Solved in SVN r11189

Posted by Matthew Weier O'Phinney (matthew) on 2008-09-01T07:00:38.000+0000

Re-opening; in discussions on IRC, we decided that the actual method call should be updated to allow both strings and integers.

Posted by old of Satoru Yoshida ( on 2008-09-01T17:35:25.000+0000

Hi, Matthew. I agree. :-) I think ZF-3497 should be influenced with ZF-4149. I found ZF-4149 after changing this issue.

Posted by Matthew Weier O'Phinney (matthew) on 2008-11-05T12:11:17.000+0000

Fixed for 1.6.1.

Posted by Wil Sinclair (wil) on 2008-11-13T14:09:57.000+0000

Changing issues in preparation for the 1.7.0 release.

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.