-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The MongoDB\Driver\Cursor var_dump() format looks weird.
All content is stuffed into a top-level "cursor" key... With only one sibling, server_id.
No other object do that I believe. BulkWrite for example doesn't have a top-level "bulkwrite" key or anything.
This also looks very wrong from the code perspective, where the returned array only has 2 elements, but we specifically initialized an array of size 4 with array_init_size().
Should the contents of the "cursor" key be moved one-level up?
- related to
-
PHPC-133 var_dump()ing Cursor should be meaningful
-
- Closed
-