From 11d0e29ebd7ae12e2b53d90d7a9757b1c51c04e5 Mon Sep 17 00:00:00 2001 From: Arnold Daniels Date: Tue, 29 Mar 2022 09:08:52 +0200 Subject: [PATCH] Skip memcached tests on PHP 8.1 See php-memcached-dev/php-memcached#509 --- tests/MemcachedTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/MemcachedTest.php b/tests/MemcachedTest.php index ba59442..23fea73 100644 --- a/tests/MemcachedTest.php +++ b/tests/MemcachedTest.php @@ -33,6 +33,13 @@ public function createSimpleCache() ); } + // See https://github.com/php-memcached-dev/php-memcached/issues/509 + if (version_compare(PHP_VERSION, '8.1.0', '>=')) { + $this->markTestSkipped( + 'The Memcached extension is does not work with PHP 8.1 yet.' + ); + } + list($host, $port) = explode(':', CACHE_TESTS_MEMCACHED_SERVER) + [1 => 11211]; $adapter = new Memcached();