commit 50d4685feb50e62ee948c0fcbb2782eab850cf2f
Author: Elan Ruusamäe <[email protected]>
Date:   Tue Aug 13 18:11:15 2019 +0300

    up to 1.1.2

 bug-73524.patch    | 46 ----------------------------------------------
 php-pecl-ssh2.spec |  8 +++-----
 2 files changed, 3 insertions(+), 51 deletions(-)
---
diff --git a/php-pecl-ssh2.spec b/php-pecl-ssh2.spec
index 46d7495..c5862f1 100644
--- a/php-pecl-ssh2.spec
+++ b/php-pecl-ssh2.spec
@@ -3,13 +3,12 @@
 Summary:       %{modname} - bindings for the libssh2 library
 Summary(pl.UTF-8):     %{modname} - dowiązania do biblioteki libssh2
 Name:          %{php_name}-pecl-%{modname}
-Version:       0.13
+Version:       1.1.2
 Release:       1
 License:       PHP
 Group:         Development/Languages/PHP
-Source0:       http://pecl.php.net/get/%{modname}-%{version}.tgz
-# Source0-md5: e35f8438b3f6177066166c8c1916f44e
-Patch0:                bug-73524.patch
+Source0:       https://pecl.php.net/get/%{modname}-%{version}.tgz
+# Source0-md5: 0bb1b02ae6d1d1a86134959e9b45ae69
 URL:           https://pecl.php.net/package/ssh2
 BuildRequires: %{php_name}-devel >= 4:5.0.4
 BuildRequires: libssh2-devel >= 1.2.9
@@ -31,7 +30,6 @@ implementującej protokół SSH2.
 %prep
 %setup -qc
 mv %{modname}-%{version}/* .
-%patch0 -p1
 
 %build
 phpize
diff --git a/bug-73524.patch b/bug-73524.patch
deleted file mode 100644
index 91c9175..0000000
--- a/bug-73524.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From 093906ec1c065e86ad1cd4dabbc89b1ccae11938 Mon Sep 17 00:00:00 2001
-From: Remi Collet <[email protected]>
-Date: Thu, 10 Nov 2016 09:16:02 +0100
-Subject: [PATCH] fix for PHP 7.0.13 where php_url_parse fails
-
----
- ssh2_fopen_wrappers.c | 17 ++++++++++++-----
- 1 file changed, 12 insertions(+), 5 deletions(-)
-
-diff --git a/ssh2_fopen_wrappers.c b/ssh2_fopen_wrappers.c
-index 8472ddd..89b34eb 100644
---- a/ssh2_fopen_wrappers.c
-+++ b/ssh2_fopen_wrappers.c
-@@ -198,10 +198,20 @@ php_url *php_ssh2_fopen_wraper_parse_path(       char 
*path, char *type, php_stream_co
-       php_url *resource;
-       zval *methods = NULL, *callbacks = NULL, zsession, **tmpzval;
-       long resource_id;
--      char *s, *username = NULL, *password = NULL, *pubkey_file = NULL, 
*privkey_file = NULL;
-+      char *h, *s, *username = NULL, *password = NULL, *pubkey_file = NULL, 
*privkey_file = NULL;
-       int username_len = 0, password_len = 0;
- 
--      resource = php_url_parse(path);
-+      h = strstr(path, "Resource id #");
-+      if (h) {
-+              /* Starting with 5.6.28, 7.0.13 need to be clean, else 
php_url_parse will fail */
-+              char *tmp = estrdup(path);
-+
-+              strncpy(tmp + (h-path), h + sizeof("Resource id #")-1, 
strlen(tmp)-sizeof("Resource id #"));
-+              resource = php_url_parse(tmp);
-+              efree(tmp);
-+      } else {
-+              resource = php_url_parse(path);
-+      }
-       if (!resource || !resource->path) {
-               return NULL;
-       }
-@@ -232,9 +242,6 @@ php_url *php_ssh2_fopen_wraper_parse_path( char *path, 
char *type, php_stream_co
- 
-       /* Look for a resource ID to reuse a session */
-       s = resource->host;
--      if (strncmp(resource->host, "Resource id #", sizeof("Resource id #") - 
1) == 0) {
--              s = resource->host + sizeof("Resource id #") - 1;
--      }
-       if (is_numeric_string(s, strlen(s), &resource_id, NULL, 0) == IS_LONG) {
-               php_ssh2_sftp_data *sftp_data;
- 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-ssh2.git/commitdiff/0fcbc989a3d8216c29e45a0f3395d8fbc995d919

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to