Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
opt
/
php-8.3
/
share
/
test
/
mongodb
/
tests
/
bson
/
//proc/thread-self/root/opt/php-8.3/share/test/mongodb/tests/bson/bson-int64-compare-004.phpt
--TEST-- MongoDB\BSON\Int64 comparisons with scalars (64-bit values, all platforms) --FILE-- <?php // Use 2**33 to ensure it still fits in a float $int64 = new MongoDB\BSON\Int64('8589934592'); $tests = [ 'matching float' => (float) 2**33, 'wrong int' => 0, ]; foreach ($tests as $name => $value) { printf('Testing %s: %s' . PHP_EOL, $name, var_export($int64 == $value, true)); } var_dump($int64 > 123); ?> ===DONE=== <?php exit(0); ?> --EXPECT-- Testing matching float: true Testing wrong int: false bool(true) ===DONE===