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


See: http://framework.zend.com/manual/en/…

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)


Solved in SVN r11189

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

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

Fixed for 1.6.1.

Changing issues in preparation for the 1.7.0 release.