Skip to content

Commit

Permalink
fix php-memcached-dev#513 skip test with old and dead libmemcached
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Mar 28, 2022
1 parent 09e094d commit 1f22de7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/memcachedserver.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ if (!extension_loaded("memcached")) {
if (!class_exists("MemcachedServer")) {
die("skip memcached not built with libmemcachedprotocol support\n");
}

if (Memcached::LIBMEMCACHED_VERSION_HEX < 0x1001000) {
die("skip needs at least libmemcached 1.1.0\n");
}
Expand Down
3 changes: 3 additions & 0 deletions tests/memcachedserver6.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ if (!extension_loaded("memcached")) {
if (!class_exists("MemcachedServer")) {
die("skip memcached not built with libmemcachedprotocol support\n");
}
if (Memcached::LIBMEMCACHED_VERSION_HEX < 0x1001000) {
die("skip needs at least libmemcached 1.1.0\n");
}
?>
--FILE--
<?php
Expand Down

0 comments on commit 1f22de7

Please sign in to comment.