我正在尝试在 wampserver 中安装 PHP 8,并且按照 wampserver 官方论坛中的教程进行操作,但 PHP 8 不起作用。它显示以下错误。
This PHP version 8.0.2 doesn't seem to be compatible with your actual Apache Version.
c:/wamp64/bin/php/php8.0.2/php8apache2_4.dll does not exist.
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题并在 wampaserver 中安装 php8?

信息
这是我下载php8的页面https://windows.php.net/qa/
在我的代码中我有一个lookup方法:
查找.dart
Future<http.Response> httpLookup(String address) {
return kIsWeb
? _httpClient.get(address)
: _httpClient.get(
Uri.https(address, ''),
);
}
Run Code Online (Sandbox Code Playgroud)
kIsWeb在单元测试期间如何测试常量?这是我到目前为止所尝试过的,但报道并未进行。
Lookup_test.dart
@TestOn('browser')
void main (){
test('shoud test lookup', () {
InternetLookup lookup = InternetLookup();
when(mockInternetLookup.httpLookup(any))
.thenAnswer((realInvocation) async => http.Response('success', 200));
lookup.httpLookup('www.google.com');
});
}
Run Code Online (Sandbox Code Playgroud)