Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-2234

Implement compare_objects handler for ReadConcern, ReadPreference, and WriteConcern

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      Implement compare_objects handler for ReadConcern, ReadPreference, and WriteConcern so that instances can be compared using the == operator. As discussed in mongodb/mongo-php-library#1082, the current behavior uses PHP's default object handler and always considers instances of these classes equal since there are no object properties to compare (the zend_object properties used for comparison are unrelated to the internal properties on the PHPC struct).

            Assignee:
            Unassigned Unassigned
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: