From 83b22e786c6a0c8c031d67eb8e65c26e3bd556f7 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Sun, 18 Oct 2020 19:32:48 +0200 Subject: [PATCH] Check that memcached is configured correctly Test: memcached, memcached+igbinary, memcached+msgpack, memcached+igbinary+msgpack --- scripts/tests/memcached | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/tests/memcached diff --git a/scripts/tests/memcached b/scripts/tests/memcached new file mode 100755 index 0000000..15f6c42 --- /dev/null +++ b/scripts/tests/memcached @@ -0,0 +1,18 @@ +#!/bin/sh + +set -o errexit +set -o nounset + +MODULE_CONFIGURATION="$(php --ri memcached)" +if test $1 -ge 70000; then + if php --ri igbinary >/dev/null 2>/dev/null; then + if test -z "$(printf '%s' "$MODULE_CONFIGURATION" | grep 'igbinary support => yes')"; then + echo 'igbinary support has NOT been enabled!' >&2 + fi + fi + if php --ri msgpack >/dev/null 2>/dev/null; then + if test -z "$(printf '%s' "$MODULE_CONFIGURATION" | grep 'msgpack support => yes')"; then + echo 'msgpack support has NOT been enabled!' >&2 + fi + fi +fi