Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
opt
/
php-8.2.24-202410171016
/
share
/
test
/
mongodb
/
tests
/
bson
/
//opt/php-8.2.24-202410171016/share/test/mongodb/tests/bson/bug0325.phpt
--TEST-- Test for PHPC-325: Memory leak decoding buffers with multiple documents --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; $bson1 = fromJSON('{"x": "y"}'); $bson2 = fromJSON('{"a": "b"}'); try { var_dump(toPHP($bson1 . $bson2)); } catch (MongoDB\Driver\Exception\UnexpectedValueException $e) { echo $e->getMessage(), "\n"; } ?> ===DONE=== <?php exit(0); ?> --EXPECT-- Reading document did not exhaust input buffer ===DONE===