Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.0 RC1
-
Fix Version/s: 1.6.0
-
Component/s: Zend_Server_Reflection
-
Labels:None
-
Fix Version Priority:Should Have
Description
Overview
There seems to be a problem that I've found when brought up by someone on #zftalk . It seems that Zend_Server_Reflection has problems with the use of func_get_args() when there is an @param phpdoc statement with extra params.
Example
/** * Internally redirects one action to another * * @param string $action The new action to be redirected to * @param mixed Any other parameters passed to this method will be passed as * parameters to the new action. * @access public */ function setAction($action) { $this->action = $action; $args = func_get_args(); unset($args[0]); call_user_func_array(array(&$this, $action), $args); }
Result
Error msg: ( ! ) Fatal error: Call to a member function isOptional() on a non-object in Zend/Server/Reflection/Function/Abstract.php on line 346
Discussion links
http://www.nabble.com/Zend_Server_Reflection-t3822461.html#a10827860
Issue Links
| This issue is duplicated by: | ||||
| ZF-1866 | Zend_Server_Reflection should allow specifying docblock parameters for parameters not in the method signature |
|
|
|
Updated affected component.