diff --git a/ext/com_dotnet/tests/bug77578.phpt b/ext/com_dotnet/tests/bug77578.phpt index abb68cc163f4f..653a16123218d 100644 --- a/ext/com_dotnet/tests/bug77578.phpt +++ b/ext/com_dotnet/tests/bug77578.phpt @@ -7,9 +7,13 @@ com_dotnet // To actually be able to verify the crash during shutdown on Windows, we have // to execute a PHP subprocess, and check its exit status. $php = PHP_BINARY; -$ini = php_ini_loaded_file(); -$iniopt = $ini ? "-c $ini" : ''; -$command = "$php $iniopt -d extension=com_dotnet -d com.autoregister_typelib=1 -r \"new COM('WbemScripting.SWbemLocator');\""; +$extension_dir = ini_get("extension_dir"); +$script = <<