From dd52f97d03b96c46d410f96597246752e7f957cb Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 7 Apr 2026 08:33:23 +0200 Subject: update to 1.5.0 --- PHPINFO | 2 +- REFLECTION | 31 ++++++++++++++++++++++++++++++- composer.json | 19 +++++++++++++++++++ php-pecl-ssh2.spec | 9 ++++++--- 4 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 composer.json diff --git a/PHPINFO b/PHPINFO index 652a8cb..5e9ce4e 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,6 +2,6 @@ ssh2 SSH2 support => enabled -extension version => 1.4.1 +extension version => 1.5.0 libssh2 version => 1.11.1 banner => SSH-2.0-libssh2_1.11.1 diff --git a/REFLECTION b/REFLECTION index 0ecc95c..47fcace 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #124 ssh2 version 1.4.1 ] { +Extension [ extension #123 ssh2 version 1.5.0 ] { - Constants [21] { Constant [ int SSH2_FINGERPRINT_MD5 ] { 0 } @@ -40,6 +40,28 @@ Extension [ extension #124 ssh2 version 1.4.1 ] { Parameter #0 [ $session ] } } + Function [ function ssh2_set_timeout ] { + + - Parameters [3] { + Parameter #0 [ $session ] + Parameter #1 [ $seconds ] + Parameter #2 [ $microseconds = ] + } + } + Function [ function ssh2_keepalive_config ] { + + - Parameters [3] { + Parameter #0 [ $session ] + Parameter #1 [ $want_reply ] + Parameter #2 [ $interval ] + } + } + Function [ function ssh2_keepalive_send ] { + + - Parameters [1] { + Parameter #0 [ $session ] + } + } Function [ function ssh2_methods_negotiated ] { - Parameters [1] { @@ -179,6 +201,13 @@ Extension [ extension #124 ssh2 version 1.4.1 ] { Parameter #1 [ $timeout = ] } } + Function [ function ssh2_send_signal ] { + + - Parameters [2] { + Parameter #0 [ $channel ] + Parameter #1 [ $signal ] + } + } Function [ function ssh2_send_eof ] { - Parameters [1] { diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..44123d1 --- /dev/null +++ b/composer.json @@ -0,0 +1,19 @@ +{ + "name": "php/pecl-networking-ssh2", + "type": "php-ext", + "license": "PHP-3.01", + "description": "Bindings for the libssh2 library", + "require": { + "php": ">=8.0.0" + }, + "php-ext": { + "extension-name": "ssh2", + "configure-options": [ + { + "name": "with-ssh2", + "description": "libssh2 prefix path (autodetected if not given)", + "needs-value": false + } + ] + } +} diff --git a/php-pecl-ssh2.spec b/php-pecl-ssh2.spec index 222ee94..23ca8de 100644 --- a/php-pecl-ssh2.spec +++ b/php-pecl-ssh2.spec @@ -26,8 +26,8 @@ Name: %{?scl_prefix}php-pecl-ssh2 Summary: Bindings for the libssh2 library License: PHP-3.01 -Version: 1.4.1 -Release: 4%{?dist} +Version: 1.5.0 +Release: 1%{?dist} %forgemeta URL: %{forgeurl} Source0: %{forgesource} @@ -35,7 +35,7 @@ Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel >= 7.0 +BuildRequires: %{?scl_prefix}php-devel >= 8.0 %if 0%{?vendeur:1} && 0%{?fedora} < 39 && 0%{?rhel} < 9 %global move_to_opt 1 BuildRequires: %{vendeur}-libssh2-devel >= 1.11 @@ -186,6 +186,9 @@ done %changelog +* Tue Apr 7 2026 Remi Collet - 1.5.0-1 +- update to 1.5.0 + * Fri Mar 27 2026 Remi Collet - 1.4.1-4 - drop pear/pecl dependency - sources from github -- cgit