-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
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.
- related to
-
PHPC-2222 PackedArray::fromPHP returns Document for root=bson type map
- Closed
-
PHPLIB-1137 Prohibit PackedArray objects where a document type is expected
- Closed