--TEST-- MongoDB\BSON\Int64 comparisons with scalars (64-bit values, 64-bit platforms only) --SKIPIF-- --FILE-- 8589934592, 'wrong int' => 8589934593, ]; foreach ($tests as $name => $value) { printf('Testing %s: %s' . PHP_EOL, $name, var_export($int64 == $value, true)); } ?> ===DONE=== --EXPECT-- Testing matching int: true Testing wrong int: false ===DONE===