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

BSON encoding should throw if PHP keys contain null bytes

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.3
    • Affects Version/s: 1.2.2
    • Component/s: None
    • Labels:
      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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: