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 2023-05-07 18:54:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/php-memcache (Old) and /work/SRC/openSUSE:Factory/.php-memcache.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "php-memcache" Sun May 7 18:54:38 2023 rev:8 rq:1085316 version:8.2 Changes: -------- --- /work/SRC/openSUSE:Factory/php-memcache/php-memcache.changes 2023-04-12 12:51:33.252915798 +0200 +++ /work/SRC/openSUSE:Factory/.php-memcache.new.1533/php-memcache.changes 2023-05-07 18:54:47.280193999 +0200 @@ -1,0 +2,8 @@ +Sun May 7 13:05:25 UTC 2023 - Arjen de Korte <[email protected]> + +- Update to version 8.2 + * Added support for PHP 8.2.x +- Remove upstreamed / obsolete patches + - trivial-minimal-fix-for-PHP-8.2.patch + +------------------------------------------------------------------- Old: ---- 8.0.1.tar.gz trivial-minimal-fix-for-PHP-8.2.patch New: ---- 8.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ php-memcache.spec ++++++ --- /var/tmp/diff_new_pack.1ZCfwC/_old 2023-05-07 18:54:47.740196566 +0200 +++ /var/tmp/diff_new_pack.1ZCfwC/_new 2023-05-07 18:54:47.744196589 +0200 @@ -31,7 +31,7 @@ %endif Name: %{php_name}-%{pkg_name} -Version: 8.0.1 +Version: 8.2 Release: 0 Summary: PHP Memcache client Extension License: PHP-3.0 @@ -41,8 +41,6 @@ Source10: php-memcache-rpmlintrc # PATCH-FIX-OPENSUSE: fix unit tests that don't work on OBS Patch1: fixup-unit-tests.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 ++++++ 8.0.1.tar.gz -> 8.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecl-memcache-8.0.1/.github/workflows/config.yml new/pecl-memcache-8.2/.github/workflows/config.yml --- old/pecl-memcache-8.0.1/.github/workflows/config.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/pecl-memcache-8.2/.github/workflows/config.yml 2023-04-30 13:17:46.000000000 +0200 @@ -0,0 +1,37 @@ +name: Build and Test +on: [push, pull_request] +jobs: + ubuntu: + strategy: + matrix: + version: ["8.0", "8.1", "8.2"] + runs-on: ubuntu-latest + steps: + - name: Checkout pecl-memcache extension + uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{matrix.version}} + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install zlib1g-dev memcached + sudo systemctl stop memcached + - name: Start memcached daemons + run: | + mkdir -p /var/run/memcached + sudo chmod a+w /var/run/memcached + /usr/bin/memcached -m 64 -s /var/run/memcached/memcached.sock -d + /usr/bin/memcached -m 64 -U 11211 -l 127.0.0.1 -p 11211 -d + /usr/bin/memcached -m 64 -U 11212 -l 127.0.0.1 -p 11212 -d + - name: phpize + run: phpize + - name: configure + run: ./configure + - name: make + run: make + - name: test + run: | + MEMCACHE_PROTOCOL=ascii make test TESTS="--show-diff" + MEMCACHE_PROTOCOL=binary make test TESTS="--show-diff" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecl-memcache-8.0.1/Dockerfile new/pecl-memcache-8.2/Dockerfile --- old/pecl-memcache-8.0.1/Dockerfile 2022-07-29 13:24:09.000000000 +0200 +++ new/pecl-memcache-8.2/Dockerfile 2023-04-30 13:17:46.000000000 +0200 @@ -1,4 +1,4 @@ -ARG PHP_IMAGE=php:8.0 +ARG PHP_IMAGE=php:8.2 FROM $PHP_IMAGE RUN docker-php-ext-configure pcntl --enable-pcntl \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecl-memcache-8.0.1/README new/pecl-memcache-8.2/README --- old/pecl-memcache-8.0.1/README 2022-07-29 13:24:09.000000000 +0200 +++ new/pecl-memcache-8.2/README 2023-04-30 13:17:46.000000000 +0200 @@ -3,7 +3,7 @@ This repository contains modified pecl-memcache plugin ported to PHP8, which was originally developed for the need of hosting company in Slovakia (Websupport.sk). -The latest release is 8.0 (released: 2020-12-06) with support for PHP 8.0 and unofficial support for PHP 7.3 and 7.4 +The latest release is 8.2 (released: 2023-04-30) with support for PHP 8.0+ (incl. PHP 8.2). Please use version 4.0.5.1 (released: 2020-12-19) for PHP 7.x from branch NON_BLOCKING_IO_php7. @@ -14,7 +14,7 @@ -Original README: +Original README before 2019: memcached module for PHP ------------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecl-memcache-8.0.1/cloudbuild.yaml new/pecl-memcache-8.2/cloudbuild.yaml --- old/pecl-memcache-8.0.1/cloudbuild.yaml 2022-07-29 13:24:09.000000000 +0200 +++ new/pecl-memcache-8.2/cloudbuild.yaml 1970-01-01 01:00:00.000000000 +0100 @@ -1,14 +0,0 @@ -steps: -- name: 'gcr.io/cloud-builders/docker' - args: [ 'build', '-t', 'gcr.io/$PROJECT_ID/build-8.0.0', '--build-arg=PHP_IMAGE=php:8.0.0-buster', '.' ] - waitFor: ['-'] - id: 'build-8.0.0' - -- name: 'gcr.io/cloud-builders/docker' - args: ['run', 'gcr.io/$PROJECT_ID/build-8.0.0'] - waitFor: ['build-8.0.0'] - id: 'run-8.0.0' -images: [ - - 'gcr.io/$PROJECT_ID/build-8.0.0' -] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecl-memcache-8.0.1/package.xml new/pecl-memcache-8.2/package.xml --- old/pecl-memcache-8.0.1/package.xml 2022-07-29 13:24:09.000000000 +0200 +++ new/pecl-memcache-8.2/package.xml 2023-04-30 13:17:46.000000000 +0200 @@ -44,10 +44,10 @@ <email>[email protected]</email> <active>no</active> </lead> - <date>2020-12-06</date> + <date>2023-04-30</date> <version> - <release>8.0</release> - <api>8.0</api> + <release>8.2</release> + <api>8.2</api> </version> <stability> <release>stable</release> @@ -195,6 +195,21 @@ <release> <date>2020-12-06</date> <version> + <release>8.2</release> + <api>8.2</api> + </version> + <stability> + <release>stable</release> + <api>stable</api> + </stability> + <license uri="http://www.php.net/license">PHP License</license> + <notes> + - 8.2 adds support for PHP 8.2.x + </notes> + </release> + <release> + <date>2020-12-06</date> + <version> <release>8.0</release> <api>8.0</api> </version> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecl-memcache-8.0.1/src/memcache.c new/pecl-memcache-8.2/src/memcache.c --- old/pecl-memcache-8.0.1/src/memcache.c 2022-07-29 13:24:09.000000000 +0200 +++ new/pecl-memcache-8.2/src/memcache.c 2023-04-30 13:17:46.000000000 +0200 @@ -733,9 +733,15 @@ 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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecl-memcache-8.0.1/src/memcache_session.c new/pecl-memcache-8.2/src/memcache_session.c --- old/pecl-memcache-8.0.1/src/memcache_session.c 2022-07-29 13:24:09.000000000 +0200 +++ new/pecl-memcache-8.2/src/memcache_session.c 2023-04-30 13:17:46.000000000 +0200 @@ -31,7 +31,7 @@ #include "SAPI.h" #include "ext/standard/php_smart_string.h" #include "ext/standard/url.h" -#include "session/php_session.h" +#include "ext/session/php_session.h" #ifdef PHP_WIN32 #include "win32/time.h" #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecl-memcache-8.0.1/src/php_memcache.h new/pecl-memcache-8.2/src/php_memcache.h --- old/pecl-memcache-8.0.1/src/php_memcache.h 2022-07-29 13:24:09.000000000 +0200 +++ new/pecl-memcache-8.2/src/php_memcache.h 2023-04-30 13:17:46.000000000 +0200 @@ -67,7 +67,7 @@ PHP_FUNCTION(memcache_flush); PHP_FUNCTION(memcache_set_sasl_auth_data); -#define PHP_MEMCACHE_VERSION "8.1-dev" +#define PHP_MEMCACHE_VERSION "8.2" #define MMC_DEFAULT_TIMEOUT 1 /* seconds */ #define MMC_DEFAULT_RETRY 15 /* retry failed server after x seconds */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecl-memcache-8.0.1/tests/029.phpt new/pecl-memcache-8.2/tests/029.phpt --- old/pecl-memcache-8.0.1/tests/029.phpt 2022-07-29 13:24:09.000000000 +0200 +++ new/pecl-memcache-8.2/tests/029.phpt 2023-04-30 13:17:46.000000000 +0200 @@ -44,7 +44,7 @@ sort($result); var_dump($result); -$result = ini_set('memcache.allow_failover', "abc"); +$result = @ini_set('memcache.allow_failover', "abc"); var_dump($result); ?> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecl-memcache-8.0.1/tests/045.phpt new/pecl-memcache-8.2/tests/045.phpt --- old/pecl-memcache-8.0.1/tests/045.phpt 2022-07-29 13:24:09.000000000 +0200 +++ new/pecl-memcache-8.2/tests/045.phpt 2023-04-30 13:17:46.000000000 +0200 @@ -8,6 +8,8 @@ include 'connect.inc'; class testclass { + public $result = null; + function __wakeup() { global $memcache; $this->result = $memcache->get('_test_key3'); @@ -48,4 +50,4 @@ [0]=> int(123) } -} \ No newline at end of file +}
