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-7.2
/
share
/
test
/
mongodb
/
tests
/
bson
/
//proc/thread-self/root/opt/php-7.2/share/test/mongodb/tests/bson/bson-decimal128-003.phpt
--TEST-- MongoDB\BSON\Decimal128 Infinity values --SKIPIF-- <?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?> --FILE-- <?php $tests = [ 1.7976931348623158e+308+1.7976931348623158e+308, INF, 'inf', 'Inf', 'INF', 'infinity', 'Infinity', 'INFINITY', ]; foreach ($tests as $test) { printf("%s\n", new MongoDB\BSON\Decimal128($test)); } ?> ===DONE=== <?php exit(0); ?> --EXPECT-- Infinity Infinity Infinity Infinity Infinity Infinity Infinity Infinity ===DONE===