-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: BSON
-
None
-
PHP Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Existing usages of phongo_document_new and phongo_packedarray_new always copy the bson_t argument, so the parameter can likely be changed to const bson_t*. This would also allow removal of the copy boolean.
If the non-copy functionality is needed down the line, "_ex" variants of these functions could be introduced.