Skip to content

Instantly share code, notes, and snippets.

@mikebarkas
Created April 12, 2016 15:02
Show Gist options
  • Save mikebarkas/68d0f6288d77742eccf70049bab40a05 to your computer and use it in GitHub Desktop.
Save mikebarkas/68d0f6288d77742eccf70049bab40a05 to your computer and use it in GitHub Desktop.
PHP5.6 SSL Stream Wrapper Issues
// For local development, remove the SSL certificate check.
$client_options = array(
'trace' => 'example_trace',
'soap_version' => 'example_version',
'stream_context' => stream_context_create(
array(
'ssl' => array(
'verify_peer' => FALSE,
'verify_peer_name' => FALSE,
)
)
),
);
$client = new SoapClient($wsdl, $client_options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment