- Notifications
You must be signed in to change notification settings - Fork 117
Closed
Labels
Description
hi.
I get a problem, in 32-bit php decode int64 is error. I think the problem maybe is here.
int msgpack_unserialize_int64( msgpack_unserialize_data *unpack, int64_t data, zval **obj) { ZVAL_LONG(*obj, data); return 0; } int msgpack_unserialize_int64(
msgpack_unserialize_data _unpack, int64_t data, zval *_obj)
{
if(data > LONG_MAX || data < -LONG_MAX) {
ZVAL_DOUBLE(_obj, (double)data);
} else {
ZVAL_LONG(_obj, data);
}
return 0;
}