Skip to content

Commit 12265c8

Browse files
committed
PHPC-430, PHPC-377: Do not convert Query filter arg to an object
This is unnecessary, since the filter BSON is already a document. The conversion also disturbs the original zval, as demonstrated by bug0430-001.phpt.
1 parent ec3e1cc commit 12265c8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/MongoDB/Query.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ PHP_METHOD(Query, __construct)
7171

7272
intern->query = bson_new();
7373

74-
convert_to_object(zfilter);
7574
bson_init(&bfilter);
7675
zval_to_bson(zfilter, PHONGO_BSON_NONE, &bfilter, NULL TSRMLS_CC);
7776

0 commit comments

Comments
 (0)