We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf4d79b commit ebda9e5Copy full SHA for ebda9e5
src/Thrift/Compact/ReadBuffer.php
@@ -76,6 +76,10 @@ public function readVarint()
76
}
77
if (PHP_INT_SIZE === 4) {
78
$result = gmp_strval($result, 10);
79
+ $intResult = (int) $result;
80
+ if ((string) $intResult === $result) {
81
+ $result = $intResult;
82
+ }
83
84
85
return $result;
src/Thrift/Compact/Reader.php
@@ -187,6 +187,10 @@ private function fromZigZag($n)
187
188
189
190
191
192
193
194
195
196
0 commit comments