1--TEST-- 2Issue #67 (uint64_t) 3--SKIPIF-- 4<?php 5if (!extension_loaded("msgpack")) { 6 die("skip"); 7} 8if (PHP_INT_SIZE !== 4) 9 die("skip this test is for 32-bit platforms only"); 10?> 11--FILE-- 12<?php 13var_dump(msgpack_unpack("\xcf"."\x7f\xff\xff\xff"."\xff\xff\xff\xff")); 14var_dump(msgpack_unpack("\xcf"."\x80\x00\x00\x00"."\x00\x00\x00\x00")); 15var_dump(msgpack_unpack("\xcf"."\xff\xff\xff\xff"."\xff\xff\xff\xff")); 16?> 17OK 18--EXPECT-- 19string(19) "9223372036854775807" 20string(19) "9223372036854775808" 21string(20) "18446744073709551615" 22OK 23