summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO4
-rw-r--r--REFLECTION2
-rw-r--r--php-smbclient.spec13
3 files changed, 13 insertions, 6 deletions
diff --git a/PHPINFO b/PHPINFO
index 819fe96..5bfc88f 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,5 +2,5 @@
smbclient
smbclient Support => enabled
-smbclient extension Version => 1.1.1
-libsmbclient library Version => 4.17.7
+smbclient extension Version => 1.1.2
+libsmbclient library Version => 4.19.9
diff --git a/REFLECTION b/REFLECTION
index 0840393..a8b7d13 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #122 smbclient version 1.1.1 ] {
+Extension [ <persistent> extension #125 smbclient version 1.1.2 ] {
- Constants [30] {
Constant [ int SMBCLIENT_XATTR_CREATE ] { 1 }
diff --git a/php-smbclient.spec b/php-smbclient.spec
index d423950..813f2b7 100644
--- a/php-smbclient.spec
+++ b/php-smbclient.spec
@@ -32,8 +32,8 @@
Name: %{?scl_prefix}php-smbclient
-Version: 1.1.1
-Release: 6%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Version: 1.1.2
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Summary: PHP wrapper for libsmbclient
@@ -44,6 +44,7 @@ Source0: https://pecl.php.net/get/%{sources}.tgz
Source2: %{pecl_name}-phpunit.xml
%endif
+# See https://github.com/eduardok/libsmbclient-php/issues/106
Patch0: %{pecl_name}-upstream.patch
BuildRequires: %{?dtsprefix}gcc
@@ -85,7 +86,9 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd %{sources}
-%patch -P0 -p1 -b .up
+if [ $(%{__php} -r 'echo PHP_VERSION_ID;') -lt 70000 ]; then
+%patch -P0 -p1 -R -b .up
+fi
# Check extension version
ver=$(sed -n '/define PHP_SMBCLIENT_VERSION/{s/.* "//;s/".*$//;p}' php_smbclient.h)
@@ -187,6 +190,10 @@ cp %{SOURCE2} phpunit.xml
%changelog
+* Tue Nov 26 2024 Remi Collet <remi@remirepo.net> - 1.1.2-1
+- update to 1.1.2
+- open https://github.com/eduardok/libsmbclient-php/issues/106 broken for PHP 5
+
* Mon Jan 29 2024 Remi Collet <remi@remirepo.net> - 1.1.1-6
- fix incompatible pointer types using upstream patch
- build out of sources tree