Re: [PECL-DEV] ssh2.so

[email protected] (Calvin Buckley) Fri, 27 Sep 2024 20:18:35 -0300
Newsgroups php.pecl.dev
Message-ID <[email protected]>
On Sep 27, 2024, at 8:03=E2=80=AFPM, <[email protected]> =
<[email protected]> wrote:
>=20
> Hallo Christoph
>=20
> Thanks a lot for your reply. I do have PHP 8.3 and other PHP versions =
installed on the system as well.=20
>=20
> "php -v" outputs:
>=20
> ----
> PHP 8.1.29 (cli) (built: Jun  6 2024 16:52:57) (NTS)
> Copyright (c) The PHP Group
> Zend Engine v4.1.29, Copyright (c) Zend Technologies
>    with Zend OPcache v8.1.29, Copyright (c), by Zend Technologies
> ----
>=20
> "update-alternatives --config php" outputs:
> There are 5 choices for the alternative php (providing /usr/bin/php).
>=20
>  Selection    Path             Priority   Status
> ------------------------------------------------------------
>  0            /usr/bin/php8.3   83        auto mode
>  1            /usr/bin/php7.4   74        manual mode
>  2            /usr/bin/php8.0   80        manual mode
> * 3            /usr/bin/php8.1   81        manual mode
>  4            /usr/bin/php8.2   82        manual mode
>  5            /usr/bin/php8.3   83        manual mode
>=20
> However, php8.1 is set active as indicated by the "*", which is =
confirmed by "php -v".
>=20
> And also "pecl version" outputs:
>=20
> ----
> PEAR Version: 1.10.13
> PHP Version: 8.1.29
> Zend Engine Version: 4.1.29
> ----
>=20
> This is why I was assuming the ssh2 module has been built with 8.1.29.=20=

> However, the build process stores the binaries in the 20230831 =
directory.=20
>=20
> ----
> downloading ssh2-1.4.1.tgz ...
> Starting to download ssh2-1.4.1.tgz (34,265 bytes)
> .........done: 34,265 bytes
> 6 source files, building
> running: phpize
> Configuring for:
> PHP Api Version:         20230831
> Zend Module Api No:      20230831
> Zend Extension Api No:   420230831
> ----
>=20
> Do I correctly assume it's phpize changing to 8.3 while preparing the =
build env? Do you know why phpize is doing so? Is there a related   =
configuration file or option I could adapt to make phpize/peck use =
8.1.29?=20
>=20

Is phpize (found in i.e. php-dev/php-devel depending on distro) set to =
the 8.1 version or the 8.3 version?
It might have a separate link in update-alternatives.