Browse Source

fix for ZF-7634 - since arrays have no identity, no referencing for arrays

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20319 44c647ce-9c0f-0410-b52a-842ac1e357ba
stas 16 years ago
parent
commit
801c70fb09
1 changed files with 2 additions and 5 deletions
  1. 2 5
      library/Zend/Amf/Parse/Amf3/Serializer.php

+ 2 - 5
library/Zend/Amf/Parse/Amf3/Serializer.php

@@ -323,10 +323,6 @@ class Zend_Amf_Parse_Amf3_Serializer extends Zend_Amf_Parse_Serializer
      */
      */
     public function writeArray(array $array)
     public function writeArray(array $array)
     {
     {
-        if($this->writeObjectReference($array)){
-            return $this;
-        }
-
         // have to seperate mixed from numberic keys.
         // have to seperate mixed from numberic keys.
         $numeric = array();
         $numeric = array();
         $string  = array();
         $string  = array();
@@ -364,7 +360,8 @@ class Zend_Amf_Parse_Amf3_Serializer extends Zend_Amf_Parse_Serializer
      * @param mixed $object object to check for reference
      * @param mixed $object object to check for reference
      * @return Boolean true, if the reference was written, false otherwise
      * @return Boolean true, if the reference was written, false otherwise
      */
      */
-    protected function writeObjectReference($object){
+    protected function writeObjectReference($object)
+    {
         $ref = array_search($object, $this->_referenceObjects,true);
         $ref = array_search($object, $this->_referenceObjects,true);
         //quickly handle object references
         //quickly handle object references
         if($ref !== false){
         if($ref !== false){