If you dont have the php_soap.dll extension enabled in the php.ini file, trying to create an instance of SoapClient
will cause PHP to break.
If i surround the instatiation with a try-catch block like so,
try{
$client = new SoapClient ($wsdl, array('cache_wsdl' => WSDL_CACHE_NONE) );
$result = $client->{$web_service}($parameters)->{$web_service."Result"};
return $result;
}
catch(Exception $e){
echo $e->getMessage();
}
it wont catch the excetion. Instead, it is like die()
has been called somewhere in the internal PHP code. Does anyone know why this is the case?
note: im using PHP version 7.2.1