Hi!

On 26.09.2024 at 03:09, hostmas...@audiogen.ch wrote:

> I can't get any of the ssh2.so releases >= 1.3 (prior versions do not
> support PHP 8.x) working with PHP 8.1.29. Installing/compiling with pecl
> works, but ssh2 >= 1.3 seems to implement PHP API version 20230831 which
> leads to a version mismatch and PHP throwing an error/not initializing the
> module, as 8.1.29 is using PHP API version 20210902.
>
> Did I get something wrong or did I miss anything? Is there a way to get
> 8.1.29 to work with one of the ssh2 versions?

The API versions are not supposed to be defined by the extension, but
rather are taken from the PHP version which is used to build the
extension.  So unless something terribly wrong is going on with ssh2, it
is quite likely that you've inadvertently have build the ssh2.so with
PHP 8.3, and such ssh2.so can't be loaded into PHP 8.1.

I'd start with checking the output of `pecl version`.

Christoph

Reply via email to