Issue Details (XML | Word | Printable)

Key: ZF-6975
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Wade Arnold
Reporter: Gaurav Priyadarshi
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Zend_Amf_Adobe_Introspector works incorrectly if the argument /return type of a function is specified as 'int' in the doc block

Created: 10/Jun/09 06:13 AM   Updated: 15/Jun/09 02:35 PM   Resolved: 15/Jun/09 02:35 PM
Return to search "Fixed in 1.5.1"
Component/s: Zend_Amf
Affects Version/s: None
Fix Version/s: 1.8.4

Time Tracking:
Not Specified


 Description  « Hide

Introspecting a php file :
<?php

class TestInt{

/**

  • // Returns square of given number
  • @param string $num
  • @return int
    */
    function square1($num) { return $num; }

}

returns the XML as:

<?xml version="1.0" encoding="utf-8"?>
<service-description xmlns="http://ns.adobe.com/flex/service-description/2008"><types><type name="int"/></types><operations><operation name="square1" returnType="int"><argument name="num" type="string"/></operation></operations></service-description>

The XML contains an entry <types><type name="int"/></types> which is wrong as this is a primitive type.



Stanislav Malyshev added a comment - 15/Jun/09 02:35 PM

fixed, int/integer/bool/boolean/float are now passed as-is