Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
opt
/
php-8.1.16-202303091609
/
share
/
test
/
mongodb
/
tests
/
bson
/
//opt/php-8.1.16-202303091609/share/test/mongodb/tests/bson/bson-binary-002.phpt
--TEST-- MongoDB\BSON\Binary::__construct() defaults to TYPE_GENERIC --FILE-- <?php $binaryWithDefaultType = new MongoDB\BSON\Binary('randomBinaryString'); var_dump($binaryWithDefaultType->getData() === 'randomBinaryString'); var_dump($binaryWithDefaultType->getType() === MongoDB\BSON\Binary::TYPE_GENERIC); ?> ===DONE=== <?php exit(0); ?> --EXPECT-- bool(true) bool(true) ===DONE===