ZF-7610: Zend_Amf_Server is hard-coded to AMF0
The Request.php and Response.php used by the Zend_Amf_Server are hard-coded to use the Amf0 serializer. This serializer does not support the Zend_Amf_Value_ByteArray class. Therefore, we have no way to return a ByteArray using the Zend_Amf_Server.
Is there some immediate workaround that lets us return a ByteArray using the present Zend_Amf_Server code? Can Zend_Amf_Server chose the serialization according to the objectEncoding member of the NetConnection object created on the client side? Is there some way to cast a string to a ByteArray in ActionScript3?
I'm using the mcrypt library in PHP and attempting to return encrypted strings to the client.