THRIFT-2351 PHP TCompactProtocol has fails to decode messages
authorRoger Meier <roger@apache.org>
Tue, 11 Feb 2014 20:28:56 +0000 (21:28 +0100)
committerRoger Meier <roger@apache.org>
Tue, 11 Feb 2014 20:28:56 +0000 (21:28 +0100)
Patch: Paul Banks

lib/php/lib/Thrift/Protocol/TCompactProtocol.php

index e637a59..880da25 100644 (file)
@@ -387,8 +387,8 @@ class TCompactProtocol extends TProtocol {
     if ($version != TCompactProtocol::VERSION) {
       throw new TProtocolException('Bad version in TCompact message');
     }
-    $result += $this->readVarint($seqId);
-    $name += $this->readString($name);
+    $result += $this->readVarint($seqid);
+    $result += $this->readString($name);
 
     return $result;
   }