Issues

ZF-10520: Zend_Server_Reflection_Function_Abstract _reflect() adds incorrect number of default types and descriptions

Description

"Variable number of arguments is not supported for services (except optional parameters). Number of function arguments must correspond to actual number of arguments described in a docblock."

I have encountered this error and could not found reason at application level.. IMHO in Zend/Server/Reflection/Function/Abstract.php on line 320 is

$start = $paramCount - count($paramTypesTmp);

and should be

$start = count($paramTypesTmp);

(At line 332 it is similar.) Wrong starting index is causing evaluation of conditition at line 338 (count($paramTypesTmp) != $paramCount) as true and exception with message described above is raised.

Comments

No comments to display