ZF-6393: Wrong AMF0_AMF3 reference counting

Issue Type: Bug Created: 2009-04-23T08:25:16.000+0000 Last Updated: 2009-06-16T14:36:54.000+0000 Status: Resolved Fix version(s): - 1.8.4 (23/Jun/09)

Reporter: Stefan Klug (stefanklug) Assignee: Wade Arnold (wadearnold) Tags: - Zend_Amf

Related issues: - ZF-5049

Attachments: - Amf0_Deserializer.patch


If there is more than one body part in a mixed AMF0/AMF3 message, and there are complex parameters (Anonymous and Typed objects) used, The requests will fail. The reason is, that the AMF3 protocol restarts reference counting when it switches from AMF0 to AMF3 mode, but the current AMF0 deserializer reuses the last used AMF3 deserializer, and therefore doesn't restart reference counting.

This bug is also the reason for bug ZF-5049/5382

I attached a patch which fixes the problem.

Regards Stefan


Posted by Andreas Adam (acadam71) on 2009-05-28T09:11:01.000+0000

Great Work Stefan! All our problem are blowing away! Now it runs fine!

Posted by Wade Arnold (wadearnold) on 2009-06-16T14:36:54.000+0000

Patch has been added to the standard trunk and will be updated with the next mini release of ZF

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.