ZF-6948: Zend_Amf_Adobe_Introspector works incorrectly for functions with default argument values

Issue Type: Bug Created: 2009-06-08T02:05:42.000+0000 Last Updated: 2009-10-30T04:31:11.000+0000 Status: Resolved Fix version(s): - 1.9.3 (22/Sep/09)

Reporter: Gaurav Priyadarshi (gauravp) Assignee: Wade Arnold (wadearnold) Tags: - Zend_Amf

Related issues: Attachments:


If php file contains following code:

Clearly this XML is not correct, it contains two different entries for the function "myFunc".


Posted by Stanislav Malyshev (stas) on 2009-09-06T11:01:14.000+0000

Actually, it is correct. myFunc has two valid signatures - myFunc() and myFunc(string).

Posted by Gaurav Priyadarshi (gauravp) on 2009-09-06T11:05:55.000+0000

Yes. But it would be better if only one signature is returned something like,

This will help the client, which is introspecting to get the default value. I will also tell that the argument id already has a default value so may not be passed.

Posted by Stanislav Malyshev (stas) on 2009-09-11T18:42:25.000+0000

Fixed by rev. 18086 in trunk - added default value…

Posted by Gaurav Priyadarshi (gauravp) on 2009-10-30T04:31:10.000+0000

The issue is not fixed in Zend Framework 1.9.4 and 1.9.5 Looks like the fix did not make into these builds, although the bug says that it got fixed in 1.9.3

Have you found an issue?

See the Overview section for more details.


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

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