aboutsummaryrefslogtreecommitdiff
path: root/php/src/Google/Protobuf/Internal/InputStream.php
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2017-02-07 21:33:28 -0800
committerPaul Yang <TeBoring@users.noreply.github.com>2017-03-15 14:16:49 -0700
commitf23869c6154d8b083ee3417fac277bc25e13a4ac (patch)
tree2e9ea1cfcc88211ac1e364155d696c808acb11ba /php/src/Google/Protobuf/Internal/InputStream.php
parent014a5507fb4b1ccc12f35ff313b8a04c05d69b7f (diff)
downloadprotobuf-f23869c6154d8b083ee3417fac277bc25e13a4ac.tar.gz
protobuf-f23869c6154d8b083ee3417fac277bc25e13a4ac.tar.bz2
protobuf-f23869c6154d8b083ee3417fac277bc25e13a4ac.zip
Bug fix: When encoding, negative int32 values should be padded to int64 (#2660)
in order to be wire compatible.
Diffstat (limited to 'php/src/Google/Protobuf/Internal/InputStream.php')
-rw-r--r--php/src/Google/Protobuf/Internal/InputStream.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/php/src/Google/Protobuf/Internal/InputStream.php b/php/src/Google/Protobuf/Internal/InputStream.php
index bf052c2f..de5ca978 100644
--- a/php/src/Google/Protobuf/Internal/InputStream.php
+++ b/php/src/Google/Protobuf/Internal/InputStream.php
@@ -70,7 +70,6 @@ class InputStream
private $total_bytes_read;
const MAX_VARINT_BYTES = 10;
- const MAX_VARINT32_BYTES = 5;
const DEFAULT_RECURSION_LIMIT = 100;
const DEFAULT_TOTAL_BYTES_LIMIT = 33554432; // 32 << 20, 32MB