-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 1.9.0
-
Component/s: None
-
None
When on an invalid position, MongoDB\Driver\Cursor::key returns a non-null value even if the cursor position is invalid. While users should generally use MongoDB\Driver\Cursor::valid to check for a valid position, this may be confusing (and caused an issue as PHPLIB itself checked for valid positions using key().
- related to
-
PHPC-1713 Ensure Cursor::current returns null on invalid positions
- Closed