Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.1
-
Fix Version/s: 1.6.0
-
Component/s: Zend_Server_Reflection
-
Labels:None
-
Fix Version Priority:Should Have
Description
The class Zend_View_Helper_DeclareVars has a method declareVars() that reads its parameters with func_get_args(). The docblock declares a @param for variable arguments, but the function signature declares no parameters.
This is apparently legitimate coding practice according to example in http://php.net/func-get-args, but it break Zend_Server_Reflection. Zend_Server_Reflection_Function::_refect() makes an assumption that if a parameter is documented with a @param tag in the docblock, then there must be a corresponding parameter declared in the method signature.
Linking to related issue that affects Zend_Db_Table.