Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
3bf62d1
)
THRIFT-2351 PHP TCompactProtocol has fails to decode messages
author
Roger Meier
<roger@apache.org>
Tue, 11 Feb 2014 20:28:56 +0000
(21:28 +0100)
committer
Roger 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
patch
|
blob
|
history
diff --git
a/lib/php/lib/Thrift/Protocol/TCompactProtocol.php
b/lib/php/lib/Thrift/Protocol/TCompactProtocol.php
index
e637a59
..
880da25
100644
(file)
--- a/
lib/php/lib/Thrift/Protocol/TCompactProtocol.php
+++ b/
lib/php/lib/Thrift/Protocol/TCompactProtocol.php
@@
-387,8
+387,8
@@
class TCompactProtocol extends TProtocol {
if ($version != TCompactProtocol::VERSION) {
throw new TProtocolException('Bad version in TCompact message');
}
- $result += $this->readVarint($seq
I
d);
- $
name
+= $this->readString($name);
+ $result += $this->readVarint($seq
i
d);
+ $
result
+= $this->readString($name);
return $result;
}