2 Commits

Author SHA1 Message Date
Jeremy Mikola
e9098a56e4 PHPC-2219: Prohibit serializing PackedArray as root documents (#1480)
* PHPC-2219: Prohibit serializing PackedArray as root documents

This adds logic to php_phongo_zval_to_bson_internal() to prohibit serializing PackedArray instances as a root document. Since this function is also used in specific cases to encode a BSON array, a PHONGO_BSON_ALLOW_ROOT_ARRAY flag is introduced to relax the restriction.

* Check if existing field_path element must be freed before overwriting

* Remove function name from Javascript code strings
2023-10-16 13:16:37 -04:00
Jeremy Mikola
d060b94c2d PHPC-2151: Validate masterKey option in createDataKey() and rewrapManyDataKey() 2022-10-14 16:48:59 +08:00