Check for uninitialized intern in ServerDescription get_properties_hash

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 1.13.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None

      php_phongo_serverdescription_get_properties_hash() should return early if intern is uninitialized. After the call to 
      PHONGO_GET_PROPERTY_HASH_INIT_PROPS, there should be a check that intern->server_description is a non-zero pointer. See https://github.com/mongodb/mongo-php-driver/pull/1244#discussion_r683046524

              Assignee:
              Tanli Su (Inactive)
              Reporter:
              Tanli Su (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: