Prohibit serializing PackedArray instances as root documents

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.17.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, phongo_zval_to_bson allows converting a root-level PackedArray instance to a BSON document. While this is technically possible by reusing the array offsets as string keys, it is technically incorrect as the root is always a document, so an array should not be serialisable as a root document.

            Assignee:
            Jeremy Mikola
            Reporter:
            Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: