This content has been marked as final.
Show 3 replies
-
1. Re: Connecting to PHP in FB 4.5 bugs
kokorito Jul 25, 2011 4:12 AM (in response to hidarikani)correct, associative arrays are returned as objects, arrays are returned as arrays
try this
$ret = array();
$foo['bar'] = 'test';
$ret[] = $foo;
return $ret;
you should get an arraycollection of length 1
holding an objects with property name bar and value test
-
2. Re: Connecting to PHP in FB 4.5 bugs
hidarikani Jul 25, 2011 4:48 AM (in response to kokorito)You don't undestand
FB 4.0 recognizes an associative array as an object
FB 4.5 recognizes an associative array as an array collection and makes every property an object.
This behaviour broke all my code and I'm getting ready to bang my head against the wall
-
3. Re: Connecting to PHP in FB 4.5 bugs
hidarikani Jul 25, 2011 6:58 AM (in response to hidarikani)I stand corrected, only Flash Builder 4.5 for PHP does this new return type dedection.
The version withoud Zend plug-ins still converts associative arrays to objects.
Developers be ware, it took me two days to figure this out.


