msgpack / msgpack-php

msgpack.org[PHP]
BSD 3-Clause "New" or "Revised" License
774 stars 120 forks source link

uint64 numbers are cast to uint on Windows #119

Closed pachanga closed 4 years ago

pachanga commented 6 years ago

Hi!

I use msgpack 2.0.2 with PHP 7.1 on a Windows box and experience data slicing for uint64 numbers, e.g:

php -r "var_dump(msgpack_unpack(msgpack_pack(array(5214106352))));"
array(1) {
  [0]=>
  float(919139056)
}

At the same time on a MacOS it works just fine in a similar environment.