Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-905

bad optional access exception might be thrown when any command option is missing

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 4.1.1
    • None
    • library
    • None
    • 0

    Description

      When we do conversion from PHP types to C++SDK option types, the conversion utility function might return three possible oucomes:

      1. the option is set, and the error is not set
      2. the option is not set, and the error is set
      3. the option is not set, and the error is not set (when the option is not specified)

      In some cases it might lead to the following message and crash in the extension:

      terminate called after throwing an instance of 'std::bad_optional_access'
        what():  bad optional access
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            avsej Sergey Avseyev
            avsej Sergey Avseyev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty