Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
self
/
root
/
proc
/
self
/
root
/
opt
/
php-7.1
/
share
/
test
/
mongodb
/
tests
/
bson
/
//proc/self/root/proc/self/root/opt/php-7.1/share/test/mongodb/tests/bson/bson-toPHP_error-005.phpt
--TEST-- MongoDB\BSON\toPHP(): BSON decoding ignores unsupported BSON types --FILE-- <?php $tests = [ pack('VCa*xx', 10, 0x06, 'foo'), // undefined pack('VCa*xVa*xx12x', 37, 0x0C, 'foo', 11, 'collection'), // DBPointer pack('VCa*xVa*xx', 18, 0x0E, 'foo', 4, 'bar'), // symbol ]; ini_set('mongodb.debug', 'stdout'); foreach ($tests as $bson) { var_dump(MongoDB\BSON\toPHP($bson)); } ini_set('mongodb.debug', 'off'); ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- [%s] PHONGO-BSON: WARNING > Detected unsupported BSON type 0x06 (undefined) for fieldname "foo" object(stdClass)#%d (%d) { } [%s] PHONGO-BSON: WARNING > Detected unsupported BSON type 0x0C (DBPointer) for fieldname "foo" object(stdClass)#%d (%d) { } [%s] PHONGO-BSON: WARNING > Detected unsupported BSON type 0x0E (symbol) for fieldname "foo" object(stdClass)#%d (%d) { } ===DONE===