Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.8.1
-
Fix Version/s: None
-
Component/s: Zend_Amf
-
Labels:None
-
Tags:
Description
If I read correctly, Zend_Amf supports AMF3, but I encounter this case :
test.php
class Obj {
public $innerObj;
}
// create Obj instances
$o1 = new Obj();
$o2 = new Obj();
$o3 = new Obj();
// obj3 is shared between o1 and o2
$o1->innerObj = $o3;
$o2->innerObj = $o3;
// this is sent by AMF
$ret = array($o1, $o2);
Flex sees two diferrent innerObj instances...
(I also tried to set restore-references to true in flex's services-config, without success)
Anybody ? This is quite cumbersome... It forces us to have a kind of hashmap referencing all instances to avoid duplicates and so on.