How does PHP handle SOAP requests to websites with SSL certificates and SNI enabled?

When making SOAP requests to websites with SSL certificates and SNI enabled, PHP may encounter issues due to the server name indication not being passed correctly. To solve this, you can use the `stream_context_create` function to set the appropriate SSL options, including the `SNI_server_name` option.

$options = array(
    'ssl' => array(
        'SNI_server_name' => 'example.com'
    )
);

$context = stream_context_create($options);
$client = new SoapClient("https://example.com/soap/wsdl", array('stream_context' => $context));