BSON encoding should throw if PHP keys contain null bytes

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.2.3
    • Affects Version/s: 1.2.2
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When encoding arrays, we should not allow null bytes to appear anywhere in a key string.

      When encoding objects, field names with a leading null byte are ignored, since the fields originate from an object's property hash table and PHP uses leading null bytes to denote protected and private properties. By design, the extension ignores protected and private properties.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: