缺少php 7.2的php_ssh2.dll扩展名(Windows)

Grz*_*iek 1 php php-extension

今天,我想用新的php更新我的开发机,所以我下载并设置了PHP 7.2.7 x64。

之后,我决定收集缺少的模块,然后一切正常,直到找到最后一个模块:php_ssh2.dll。从https://pecl.php.net/package/ssh2下载了最新版本1.1.2

不幸的是,它不起作用。错误:

Warning: PHP Startup: ssh2: Unable to initialize module
Module compiled with module API=20160303
PHP    compiled with module API=20170718
These options need to match
Run Code Online (Sandbox Code Playgroud)

有人对我有什么提示,如何使它起作用?

Jir*_*dil 5

我已经在Windows上为PHP 7.2(和PHP 7.3)编译了SSH2模块。可从https://github.com/nufue/pecl-ssh2-windows获取