Zend Framework

Zend_Amf_Adobe_Introspector works incorrectly with argument arrays

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.10.7
  • Fix Version/s: 1.11.1
  • Component/s: Zend_Amf
  • Labels:
    None

Description

Consider the following code

<?php
class Test {
public function argSimReturn(array $arg1, array $arg2, $arg3)

{ return $arg1; }

}
?>

Generated XML looks like below

<?xml version="1.0" encoding="utf-8"?>
<service-description xmlns="http://ns.adobe.com/flex/service-description/2008">
<types/>
<operations>
<operation name="argSimReturn" returnType="Unknown">
<argument name="arg1" type="Unknown"/>
<argument name="arg2" type="Unknown"/>
<argument name="arg3" type="Unknown"/>
</operation>
</operations>
</service-description>

But arguments arg1 and arg2 can be returned as

<argument name="arg1" type="Unknown[]"/>
<argument name="arg2" type="Unknown[]"/>

Because they are explicitly declared as array in the method signature.

Activity

Hide
Matthew Weier O'Phinney added a comment -

Fixed in trunk and 1.11 release branch; will release with 1.11.1.

Show
Matthew Weier O'Phinney added a comment - Fixed in trunk and 1.11 release branch; will release with 1.11.1.
Hide
Anand Gaurav added a comment -

When can I get this fix. Does the latest available download have it ? (it says 1.11.0 though)

Show
Anand Gaurav added a comment - When can I get this fix. Does the latest available download have it ? (it says 1.11.0 though)
Hide
Matthew Weier O'Phinney added a comment -

It's in current svn, both in the trunk and 1.11 release branch. It will release with 1.11.1 – which will release next week.

Show
Matthew Weier O'Phinney added a comment - It's in current svn, both in the trunk and 1.11 release branch. It will release with 1.11.1 – which will release next week.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: