Description
When we do conversion from PHP types to C++SDK option types, the conversion utility function might return three possible oucomes:
- the option is set, and the error is not set
- the option is not set, and the error is set
- 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
|