Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-1628

Collection::bulkWrite() does not validate hint for update and delete ops

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 1.6.0, 1.7.0
    • Component/s: None
    • None
    • PHP Drivers

      When the hint operation was introduced to update and delete operations in PHPLIB-491 and PHPLIB-539, respectively, type validation was never added to the BulkWrite class.

      An invalid type for hint will still be caught, since PHPLIB passes the options as-is to PHPC; however, the exception would be inconsistent with other operation-level options, such as collation.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: