From 9d61154a52e80a1d7680e2b0224d670f37921d8d Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Fri, 11 Oct 2019 15:30:57 +0200 Subject: [PATCH] Enable igbinary/msgpack support for memcached If the igbinary/msgpack modules are installed, let's enable their support for memcached Test: memcached --- install-php-extensions | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/install-php-extensions b/install-php-extensions index fde26ea..8eaa0d3 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -433,6 +433,27 @@ installPECLModule () { memcached) if test $1 -lt 700; then installPECLModule_actual="${2}-2.2.0" + # --with-libmemcached-dir (default: no) Set the path to libmemcached install prefix + else + installPECLModule_stdin='' + # --with-libmemcached-dir (default: no) Set the path to libmemcached install prefix + installPECLModule_stdin="${installPECLModule_stdin}\n" + # --with-zlib-dir (default: no) Set the path to ZLIB install prefix + installPECLModule_stdin="${installPECLModule_stdin}\n" + # --with-system-fastlz (default: no) Use system FastLZ library + installPECLModule_stdin="${installPECLModule_stdin}no\n" + # --enable-memcached-igbinary (default: no) Enable memcached igbinary serializer support + php --ri igbinary >/dev/null 2>/dev/null && installPECLModule_stdin="${installPECLModule_stdin}yes\n" || installPECLModule_stdin="${installPECLModule_stdin}no\n" + # --enable-memcached-msgpack (default: no) Enable memcached msgpack serializer support + php --ri msgpack >/dev/null 2>/dev/null && installPECLModule_stdin="${installPECLModule_stdin}yes\n" || installPECLModule_stdin="${installPECLModule_stdin}no\n" + # --enable-memcached-json (default: no) Enable memcached json serializer support + installPECLModule_stdin="${installPECLModule_stdin}yes\n" + # --enable-memcached-protocol (default: no) Enable memcached protocol support + installPECLModule_stdin="${installPECLModule_stdin}no\n" # https://github.com/php-memcached-dev/php-memcached/issues/418#issuecomment-449587972 + # --enable-memcached-sasl (default: yes) Enable memcached sasl support + installPECLModule_stdin="${installPECLModule_stdin}yes\n" + # --enable-memcached-session (default: yes) Enable memcached session handler support + installPECLModule_stdin="${installPECLModule_stdin}yes\n" fi ;; msgpack)