Implement compare_objects handler for ReadConcern, ReadPreference, and WriteConcern

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Jérôme Tamarelle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: