Zend Framework

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

Details

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

Description

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.

Activity

Hide
Stanislav Malyshev added a comment -

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

Show
Stanislav Malyshev added a comment - fixed, int/integer/bool/boolean/float are now passed as-is

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: