ZF-8638: Zend_Controller_Action::_getParam() incorrectly assigns default value
Description
If I have a parameter in the request object that has a value of boolean false (set by a route), and I pass in a default value, the default value will always be set if the parameter is boolean false. This is because the first part of the condition in Zend_Controller_Action::_getParam() does an Equal comparison, when it should be doing an Identical comparison. Attached is a patch that correctly fixes the issue.
Comments
Posted by Ken Stanley (dohpaz) on 2009-12-26T19:43:49.000+0000
This patch changes the first part of the condition to check for whether or not to use the default value from using an Equal (==) comparison, to an Identical (===) comparison.
Posted by Ramon Henrique Ornelas (ramon) on 2010-02-04T10:13:02.000+0000
Resolved in r19763