Matthew Weier O'Phinney-3 wrote:
>
> -- PotatoBob <[EMAIL PROTECTED]> wrote
> (on Saturday, 26 May 2007, 07:10 PM -0700):
>> 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 php doc stating extra params.
>
> This will be difficult to resolve; Zend_Server_Reflection iterates
> through the params in the docblock and then uses PHP's Reflection API to
> determine additional information (default values, whether or not it's
> optional, type hints, etc.); if the Reflection API has no knowledge of
> the param, you'll get errors like this.
>
> However, I can probably add some logic to check first that the parameter
> is found by Reflection, and if not, mark it as optional.
>
> Could you log this as an issue in JIRA for me so I can track it better?
>
> Thanks!
>
>> 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);
>> }
>>
>> Error msg: ( ! ) Fatal error: Call to a member function isOptional() on a
>> non-object in Zend/Server/Reflection/Function/Abstract.php on line 346
>
> --
> Matthew Weier O'Phinney
> PHP Developer | [EMAIL PROTECTED]
> Zend - The PHP Company | http://www.zend.com/
>
>
Unfortunately I don't have a jira account otherwise I would of posted one
already :S
--
View this message in context:
http://www.nabble.com/Zend_Server_Reflection-tf3822461s16154.html#a10827860
Sent from the Zend Framework mailing list archive at Nabble.com.