-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 0.5.1
-
Component/s: None
-
None
Based on phongo_query_init(), it appears that an empty filter array for the Query constructor could result in $query becoming a BSON array:
Z_ADDREF_P(filter);
add_assoc_zval_ex(zquery, ZEND_STRS("$query"), filter);
We should consider calling convert_to_object_ex() beforehand.
- is related to
-
PHPLIB-91 Ensure query/filter args always serialize as BSON documents
- Closed