--TEST-- MongoDB\BSON\Int64 casting (32-bit platform) --SKIPIF-- --FILE-- ===DONE=== --EXPECTF-- object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(19) "9223372036854775807" } Warning: Truncating 64-bit integer value 9223372036854775807 to 32 bits %s int(-1) float(9.22%d%r[eE]%r+18) string(19) "9223372036854775807" bool(true) object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(20) "-9223372036854775808" } Warning: Truncating 64-bit integer value -9223372036854775808 to 32 bits %s int(0) float(-9.22%d%r[eE]%r+18) string(20) "-9223372036854775808" bool(true) ===DONE===