Does anyone have a comprehensive list mapping PHP data types to those in Flash Builder, specifically so that they are understood when using the Data|Connect to PHP menu? I have worked out most of them, but I'm having trouble mapping integers larger than 32 bits and floating point numbers from PHP to Flash Builder.
For instance:
<?php
class Frame {
/**
* @var integer
*/
public $id;
/**
* @var float
*/
public $fpNum;
/**
* @var int
*/
public $int32Num;
/**
* @var float
*/
public $int64Num;
results in an Actionscript valueObject that has corresponding types of int, int, int and int. This doesn't seem right - surely a float should become a Number, and likewise with a 64-bit integer?
The only information that I've been able to find is here: http://framework.zend.com/wiki/display/ZFPROP/Zend_Amf+-+Wade+Arnold#Z end_Amf-WadeArnold-TypeMappingTable - but Flash Builder doesn't seem to behave according to the table. I know that it's possible to override the mappings, but it would be nice if Flash Builder understood how to map them properly. Any ideas?
I've also found that Flash Builder is unable to determine data types for arrays of objects, or if a type is used as a child of a returned type. In this instance, adding a dummy function to PHP to return an empty object of the 'missing' type seems to work - but really shouldn't be necessary.
Any thoughts/insights would be warmly welcomed!