THRIFT-499. php: Thrift_protocol PHP extension does not handle signedness correctly
authorBryan Duxbury <bryanduxbury@apache.org>
Tue, 12 May 2009 16:44:52 +0000 (16:44 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Tue, 12 May 2009 16:44:52 +0000 (16:44 +0000)
commitc2a9245d2589d235eacefbea5029fb1bea003c21
tree7d2e7d94dbf4c1e5da4aae5a639c61af69e109b7
parenta043be31fc88b5f3777b3311c64e9fffbe9de5b1
THRIFT-499. php: Thrift_protocol PHP extension does not handle signedness correctly

Cast all the number types to signed values before making PHP longs out of them.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@773974 13f79535-47bb-0310-9956-ffa450edef68
lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp