📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-07-12 05:10:16
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php81-pecl-mongodb_1.18.1-1.el8
/
tests
📍 /opt/alt/tests/alt-php81-pecl-mongodb_1.18.1-1.el8/tests
🔄 Refresh
✏️
Editing: bson-int64-operation-005.phpt
Read Only
--TEST-- MongoDB\BSON\Int64 operations: other operations --FILE-- <?php $value = new MongoDB\BSON\Int64(10); // Implicit conversion to bool var_dump(!$value); var_dump(!!$value); // Boolean xor var_dump($value xor 2); var_dump($value xor 0); // Testing single operation to ensure op1 and op2 can be an int64 var_dump(2 + $value); // Testing addition with unsupported numeric values // This results in PHP casting the Int64 to a number and adding it to a float var_dump($value + 3.14); var_dump(3.14 + $value); var_dump($value + 3.0); ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- bool(false) bool(true) bool(false) bool(true) object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(2) "12" } float(13.14) float(13.14) float(13) ===DONE===
💾 Save Changes
❌ Cancel