Implement compare_objects handler for ReadConcern, ReadPreference, and WriteConcern

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Gone away
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • 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:
            Pauline Vos
            Reporter:
            Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: