1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-09 00:22:40 +00:00

Check that memcached is configured correctly

Test: memcached, memcached+igbinary, memcached+msgpack, memcached+igbinary+msgpack
This commit is contained in:
Michele Locati 2020-10-18 19:32:48 +02:00
parent 7520cb08b4
commit 83b22e786c
No known key found for this signature in database
GPG key ID: 98B7CE2E7234E28B

18
scripts/tests/memcached Executable file
View file

@ -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