-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
MongoDB\Driver\CursorId was originally introduced in order to ensure 64-bit cursor IDs could be represented on 32-bit platforms (PHPC-57). But even after its introduction, additional work was necessary to ensure it could be consistently serialized as an int64 in BSON (PHPC-587).
Since 1.16, MongoDB\BSON\Int64 is generally usable (PHPC-2214) and no longer specific to 32-bit platforms.
Suggested changes:
- Remove MongoDB\Driver\CursorId
- Change the return type of Cursor::getId() and CursorInterface::getId() to MongoDB\BSON\Int64
- Any downstream changes in PHPLIB (related to getId() signature changes)