Viewing File: /opt/alt/tests/alt-php80-pecl-mongodb_1.18.1-1.el8/tests/bug0347.phpt

--TEST--
Test for PHPC-347: Memory leak decoding empty buffer
--FILE--
<?php

require_once __DIR__ . '/../utils/basic.inc';

try {
    var_dump(toPHP(''));
} catch (MongoDB\Driver\Exception\UnexpectedValueException $e) {
    echo $e->getMessage(), "\n";
}

?>
===DONE===
<?php exit(0); ?>
--EXPECT--
Could not read document from BSON reader
===DONE===
Back to Directory File Manager
<