Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package php-memcache for openSUSE:Factory 
checked in at 2022-12-11 17:17:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/php-memcache (Old)
 and      /work/SRC/openSUSE:Factory/.php-memcache.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "php-memcache"

Sun Dec 11 17:17:05 2022 rev:6 rq:1042179 version:4.0.5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/php-memcache/php-memcache.changes        
2022-12-10 21:18:51.793919557 +0100
+++ /work/SRC/openSUSE:Factory/.php-memcache.new.1835/php-memcache.changes      
2022-12-11 17:17:09.042053092 +0100
@@ -1,0 +2,6 @@
+Sun Dec 11 12:32:55 UTC 2022 - Arjen de Korte <suse+bu...@de-korte.org>
+
+- Fix build issues for PHP 8.2
+  + trivial-minimal-fix-for-PHP-8.2.patch
+
+-------------------------------------------------------------------

New:
----
  trivial-minimal-fix-for-PHP-8.2.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ php-memcache.spec ++++++
--- /var/tmp/diff_new_pack.zePByi/_old  2022-12-11 17:17:09.518055743 +0100
+++ /var/tmp/diff_new_pack.zePByi/_new  2022-12-11 17:17:09.522055765 +0100
@@ -49,6 +49,8 @@
 Patch2:         fixup-unit-test-040.patch
 # PATCH-FIX-UPSTREAM: https://github.com/websupport-sk/pecl-memcache/pull/88
 Patch3:         fix-deprecated-memcache_connect.patch
+# PATCH-FIX-UPSTREAM: https://github.com/websupport-sk/pecl-memcache/pull/104
+Patch4:         trivial-minimal-fix-for-PHP-8.2.patch
 %if 0%{?suse_version} > 1500
 BuildRequires:  %{php_name}-cli
 %endif
@@ -71,6 +73,7 @@
 %if "%{flavor}" == "php8"
 %setup -q -n %{pkg_name}-%{version} -T -b 1
 %patch3 -p1
+%patch4 -p1
 %else
 %setup -q -n %{pkg_name}-%{version}
 %patch2

++++++ trivial-minimal-fix-for-PHP-8.2.patch ++++++
>From 88178b8788c475bbc80c6df46ac8bda47cb1b983 Mon Sep 17 00:00:00 2001
From: Remi Collet <r...@remirepo.net>
Date: Wed, 5 Oct 2022 11:39:04 +0200
Subject: [PATCH] trivial/minimal fix for PHP 8.2

---
 src/memcache.c | 6 ++++++
 tests/029.phpt | 2 +-
 tests/045.phpt | 4 +++-
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/memcache.c b/src/memcache.c
index c05105a..c43e48f 100644
--- a/src/memcache.c
+++ b/src/memcache.c
@@ -733,9 +733,15 @@ PHP_MINIT_FUNCTION(memcache)
 
        INIT_CLASS_ENTRY(ce, "MemcachePool", php_memcache_pool_class_functions);
        memcache_pool_ce = zend_register_internal_class(&ce);
+#if PHP_VERSION_ID >= 80200
+       memcache_pool_ce->ce_flags |= ZEND_ACC_ALLOW_DYNAMIC_PROPERTIES;
+#endif
 
        INIT_CLASS_ENTRY(ce, "Memcache", php_memcache_class_functions);
        memcache_ce = zend_register_internal_class_ex(&ce, memcache_pool_ce);
+#if PHP_VERSION_ID >= 80200
+       memcache_ce->ce_flags |= ZEND_ACC_ALLOW_DYNAMIC_PROPERTIES;
+#endif
 
        le_memcache_pool = 
zend_register_list_destructors_ex(_mmc_pool_list_dtor, NULL, "memcache 
connection", module_number);
        le_memcache_server = zend_register_list_destructors_ex(NULL, 
_mmc_server_list_dtor, "persistent memcache connection", module_number);
diff --git a/tests/029.phpt b/tests/029.phpt
index bcacf33..4427948 100644
--- a/tests/029.phpt
+++ b/tests/029.phpt
@@ -44,7 +44,7 @@ if (is_array($result))
        sort($result);
 var_dump($result);
 
-$result = ini_set('memcache.allow_failover', "abc");
+$result = @ini_set('memcache.allow_failover', "abc");
 var_dump($result);
 
 ?>
diff --git a/tests/045.phpt b/tests/045.phpt
index e1c10ec..ddc5531 100644
--- a/tests/045.phpt
+++ b/tests/045.phpt
@@ -8,6 +8,8 @@ Nested get's in __wakeup()
 include 'connect.inc';
 
 class testclass {
+       public $result = null;
+
        function __wakeup() {
                global $memcache;
                $this->result = $memcache->get('_test_key3');
@@ -48,4 +50,4 @@ array(2) {
     [0]=>
     int(123)
   }
-}
\ No newline at end of file
+}

Reply via email to