Просмотр исходного кода

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 лет назад
Родитель
Сommit
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();