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-8.3
/
share
/
test
/
mongodb
/
tests
/
bson
/
//proc/thread-self/root/opt/php-8.3/share/test/mongodb/tests/bson/bson-document-get-002.phpt
--TEST-- MongoDB\BSON\Document::get() key access --FILE-- <?php $document = MongoDB\BSON\Document::fromPHP(['document' => (object) ['foo' => 'bar']]); $child = $document->get('document'); unset($document); var_dump($child); ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- object(MongoDB\BSON\Document)#%d (%d) { ["data"]=> string(24) "EgAAAAJmb28ABAAAAGJhcgAA" ["value"]=> object(stdClass)#%d (%d) { ["foo"]=> string(3) "bar" } } ===DONE===