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 2021-03-03 18:34:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/php-memcache (Old)
 and      /work/SRC/openSUSE:Factory/.php-memcache.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "php-memcache"

Wed Mar  3 18:34:52 2021 rev:2 rq:876378 version:4.0.5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/php-memcache/php-memcache.changes        
2021-02-15 23:23:05.244004031 +0100
+++ /work/SRC/openSUSE:Factory/.php-memcache.new.2378/php-memcache.changes      
2021-03-03 18:34:53.903378678 +0100
@@ -1,0 +2,6 @@
+Tue Feb 23 15:58:58 UTC 2021 - Arjen de Korte <[email protected]>
+
+- Fix random failures in php7 unit test
+  + fixup-unit-test-040.patch
+  
+-------------------------------------------------------------------

New:
----
  fixup-unit-test-040.patch

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

Other differences:
------------------
++++++ php-memcache.spec ++++++
--- /var/tmp/diff_new_pack.Ctqkm9/_old  2021-03-03 18:34:54.639379213 +0100
+++ /var/tmp/diff_new_pack.Ctqkm9/_new  2021-03-03 18:34:54.639379213 +0100
@@ -24,10 +24,6 @@
 %define php_name %flavor
 %endif
 
-%if 0%{?suse_version} <= 1500 && "%{flavor}" == "php8"
-ExclusiveArch:  do-not-build
-%endif
-
 %define php_extdir  %(%{__php_config} --extension-dir)
 %define php_cfgdir  %{_sysconfdir}/%{php_name}/conf.d
 %define pkg_name    memcache
@@ -35,10 +31,11 @@
 Name:           %{php_name}-%{pkg_name}
 %if "%{php_name}" == "php8"
 Version:        8.0
+Release:        0
 %else
 Version:        4.0.5.2
-%endif
 Release:        0
+%endif
 Summary:        PHP Memcache client Extension
 License:        PHP-3.0
 Group:          Productivity/Networking/Web/Servers
@@ -47,6 +44,7 @@
 Source1:        https://pecl.php.net/get/%{pkg_name}-8.0.tgz
 Source10:       php-memcache-rpmlintrc
 Patch1:         fixup-unit-tests.patch
+Patch2:         fixup-unit-test-040.patch
 %if 0%{?suse_version} > 1500
 BuildRequires:  %{php_name}-cli
 %endif
@@ -70,6 +68,7 @@
 %setup -q -n %{pkg_name}-%{version} -T -b 1
 %else
 %setup -q -n %{pkg_name}-%{version}
+%patch2
 %endif
 %patch1
 

++++++ fixup-unit-test-040.patch ++++++
--- tests/040.phpt      2019-12-20 16:07:05.000000000 +0100
+++ tests/040.phpt      2020-12-06 16:05:53.000000000 +0100
@@ -12,6 +12,7 @@ $memcache->set($balanceKey1, 1, 0, 10);
 $memcache->set($balanceKey2, 2, 0, 10);
 
 $result = $memcache->increment(array($balanceKey1, $balanceKey2), 1);
+asort($result);
 var_dump($result);
 
 $result1 = $memcache->get($balanceKey1);
@@ -20,18 +21,22 @@ var_dump($result1);
 var_dump($result2);
 
 $result = $memcache->decrement(array($balanceKey1, $balanceKey2), 1);
+asort($result);
 var_dump($result);
 
 $result = memcache_increment($memcache, array($balanceKey1, $balanceKey2), 1);
+asort($result);
 var_dump($result);
 
 $result = memcache_decrement($memcache, array($balanceKey1, $balanceKey2), 1);
+asort($result);
 var_dump($result);
 
 $result = $memcache->increment(array());
 var_dump($result);
 
 $result = $memcache->increment(array('unset_test_key', 'unset_test_key1'));
+asort($result);
 var_dump($result);
 
 ?>

Reply via email to