瀏覽代碼

fix the fix for ZF-7634 - arrays still should be counted
# and we really need better tests here!


git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20391 44c647ce-9c0f-0410-b52a-842ac1e357ba

stas 16 年之前
父節點
當前提交
1efbd4f34c
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      library/Zend/Amf/Parse/Amf3/Serializer.php

+ 3 - 0
library/Zend/Amf/Parse/Amf3/Serializer.php

@@ -323,6 +323,9 @@ class Zend_Amf_Parse_Amf3_Serializer extends Zend_Amf_Parse_Serializer
      */
     public function writeArray(array $array)
     {
+	// arrays aren't reference here but still counted
+        $this->_referenceObjects[] = $array;
+
         // have to seperate mixed from numberic keys.
         $numeric = array();
         $string  = array();