Skip to content

Commit

Permalink
Skip memcached tests on PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jasny committed Mar 29, 2022
1 parent 60327bc commit 11d0e29
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/MemcachedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 11d0e29

Please sign in to comment.