Issues

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

Issue Type: Bug Created: 2010-10-06T08:03:04.000+0000 Last Updated: 2012-11-20T21:37:57.000+0000 Status: Open Fix version(s): Reporter: Petr Stastny (stastnp) Assignee: None Tags: - Zend_Server_Reflection

Related issues: Attachments:

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts