-
Type: Task
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 0.6.3
-
Component/s: None
-
None
Based on the driver's bson_visitor_t struct, we don't define callbacks for the undefined, DB pointer, and symbol types. We should double check that decoding BSON containing these types throws an exception.
Note: the 1.x driver interprets symbols as strings and attempts to convert DB pointers to a DBRef document. I'd say there's no reason to maintain the old DB pointer conversion logic, especially because it can silently modify a document when round-tripping through the driver. As for symbol/string handling, perhaps we should check if we have any obligation to support them due to DRIVERS-196.
- is related to
-
PHPC-554 Rephrase unsupported/corrupt BSON messages
- Closed
-
PHPC-714 Implement BSON corpus test suite
- Closed
-
DRIVERS-196 Drivers in languages with a symbol representation should always serialize symbols to BSON Strings for commands
- Closed
- related to
-
PHPC-1027 Introduce classes for deprecated BSON types
- Closed
-
PHPC-1024 Document BSON exceptions for Cursor iteration
- Closed
-
PHPC-1026 Log warnings instead of throwing for unsupported BSON types
- Closed