What are common issues when updating from PHP 5 to PHP 7 that can affect SOAP/WSDL functionality?
One common issue when updating from PHP 5 to PHP 7 that can affect SOAP/WSDL functionality is the removal of the `soap.wsdl_cache_enabled` ini directive in PHP 7. This directive was used to enable or disable WSDL caching, but in PHP 7, WSDL caching is always enabled. To solve this issue, you can manually clear the WSDL cache by deleting the contents of the `soap.wsdl_cache_dir` directory.
// Clear the WSDL cache directory
$wsdlCacheDir = ini_get('soap.wsdl_cache_dir');
$files = glob($wsdlCacheDir . '/*');
foreach ($files as $file) {
if (is_file($file)) {
unlink($file);
}
}