Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-2219

Prohibit serializing PackedArray instances as root documents

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.17.0
    • Affects Version/s: None
    • Component/s: 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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            andreas.braun@mongodb.com Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: