Statement on glibc/iconv Vulnerability

MongoDB\BSON\Document::fromBSON

(mongodb >=1.16.0)

MongoDB\BSON\Document::fromBSONConstruct a new document instance from a BSON string

Description

final static public MongoDB\BSON\Document::fromBSON(string $bson): MongoDB\BSON\Document

Liste de paramètres

bson (string)

A string containing a document in BSON format.

Erreurs / Exceptions

  • Lance une exception MongoDB\Driver\InvalidArgumentException lors d'une erreur survenue pendant l'analyse d'un argument.
  • Throws MongoDB\Driver\Exception\UnexpectedValueException if bson is an invalid BSON string or contains more than a single document.

Voir aussi

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top