Explorar el Código

ZF-5391 Allow for the connection of FMS which has a new client version of 0x01

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16095 44c647ce-9c0f-0410-b52a-842ac1e357ba
wadearnold hace 16 años
padre
commit
8c269ba2fd
Se han modificado 2 ficheros con 3 adiciones y 0 borrados
  1. 2 0
      library/Zend/Amf/Constants.php
  2. 1 0
      library/Zend/Amf/Request.php

+ 2 - 0
library/Zend/Amf/Constants.php

@@ -67,6 +67,8 @@ final class Zend_Amf_Constants
     const ET_EXTERNAL            = 0x01;
     const ET_DYNAMIC             = 0x02;
     const ET_PROXY               = 0x03;
+    
+    const FMS_OBJECT_ENCODING    = 0x01;
 
     /**
      * Special content length value that indicates "unknown" content length 

+ 1 - 0
library/Zend/Amf/Request.php

@@ -105,6 +105,7 @@ class Zend_Amf_Request
         $clientVersion = $stream->readUnsignedShort();
         if (($clientVersion != Zend_Amf_Constants::AMF0_OBJECT_ENCODING)
             && ($clientVersion != Zend_Amf_Constants::AMF3_OBJECT_ENCODING)
+            && ($clientVersion != Zend_Amf_Constants::FMS_OBJECT_ENCODING)
         ) {
             require_once 'Zend/Amf/Exception.php';
             throw new Zend_Amf_Exception('Unknown Player Version ' . $clientVersion);