ZF-3497: Zend_Controller_Action_Helper_Redirector::setCode() accepts integer values only. Doc's show string.
Description
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)) {
........Exception..........
}
return true;
}
Simply change the Docs to read The issue is: $this->_redirector->setCode(303)
Comments
Posted by old of Satoru Yoshida (yoshida@zend.co.jp) 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 (yoshida@zend.co.jp) 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.