Fix memcached test

pull/179/head
Michele Locati 2020-10-18 21:12:22 +02:00
parent fbce2f2f7f
commit 66a30ea118
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 4 additions and 0 deletions

View File

@ -3,16 +3,20 @@
set -o errexit set -o errexit
set -o nounset set -o nounset
rc=0
MODULE_CONFIGURATION="$(php --ri memcached)" MODULE_CONFIGURATION="$(php --ri memcached)"
if test $1 -ge 70000; then if test $1 -ge 70000; then
if php --ri igbinary >/dev/null 2>/dev/null; then if php --ri igbinary >/dev/null 2>/dev/null; then
if test -z "$(printf '%s' "$MODULE_CONFIGURATION" | grep 'igbinary support => yes')"; then if test -z "$(printf '%s' "$MODULE_CONFIGURATION" | grep 'igbinary support => yes')"; then
echo 'igbinary support has NOT been enabled!' >&2 echo 'igbinary support has NOT been enabled!' >&2
rc=1
fi fi
fi fi
if php --ri msgpack >/dev/null 2>/dev/null; then if php --ri msgpack >/dev/null 2>/dev/null; then
if test -z "$(printf '%s' "$MODULE_CONFIGURATION" | grep 'msgpack support => yes')"; then if test -z "$(printf '%s' "$MODULE_CONFIGURATION" | grep 'msgpack support => yes')"; then
echo 'msgpack support has NOT been enabled!' >&2 echo 'msgpack support has NOT been enabled!' >&2
rc=1
fi fi
fi fi
fi fi
exit $rc