📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-07-12 06:49:16
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php84-pecl-mongodb_1.20.0-2.el8
/
tests
📍 /opt/alt/tests/alt-php84-pecl-mongodb_1.20.0-2.el8/tests
🔄 Refresh
✏️
Editing: bson-int64-compare-005.phpt
Read Only
--TEST-- MongoDB\BSON\Int64 comparisons with scalars (64-bit values, 64-bit platforms only) --SKIPIF-- <?php if (8 !== PHP_INT_SIZE) { die('skip Only for 64-bit platform'); } ?> --FILE-- <?php // Use 2**33 to ensure it still fits in a float $int64 = new MongoDB\BSON\Int64('8589934592'); $tests = [ 'matching int' => 8589934592, 'wrong int' => 8589934593, ]; foreach ($tests as $name => $value) { printf('Testing %s: %s' . PHP_EOL, $name, var_export($int64 == $value, true)); } ?> ===DONE=== <?php exit(0); ?> --EXPECT-- Testing matching int: true Testing wrong int: false ===DONE===
💾 Save Changes
❌ Cancel