-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.2.2
-
Component/s: 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.
- is related to
-
PHPC-884 Public property with zero-length name ignored during BSON encoding
- Closed
-
PHPC-886 Always recalculate field name length when encoding BSON
- Closed
- related to
-
DRIVERS-101 BSON cstring with null bytes should not be allowed
- Closed
-
PHPC-949 Memory leak if Serializable::bsonSerialize() returns keys with null bytes
- Closed