mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2024-12-02 17:38:21 +01:00
Merge pull request #392 from llaville/feature/yac
Feature - Add support for yac
This commit is contained in:
commit
0b54c17aba
@ -102,6 +102,7 @@ xlswriter 7.0 7.1 7.2 7.3 7.4 8.0
|
|||||||
xmldiff 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
|
xmldiff 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
|
||||||
xmlrpc 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
|
xmlrpc 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
|
||||||
xsl 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
|
xsl 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
|
||||||
|
yac 7.0 7.1 7.2 7.3 7.4 8.0 8.1
|
||||||
yaml 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
|
yaml 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
|
||||||
yar 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
|
yar 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
|
||||||
zip 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
|
zip 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
|
||||||
|
@ -2282,6 +2282,33 @@ installRemoteModule() {
|
|||||||
addConfigureOption enable-reader yes
|
addConfigureOption enable-reader yes
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
yac)
|
||||||
|
if test -z "$installRemoteModule_version"; then
|
||||||
|
if test $PHP_MAJMIN_VERSION -le 506; then
|
||||||
|
installRemoteModule_version=0.9.2
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 2.2.0) -ge 0; then
|
||||||
|
# Enable igbinary serializer support
|
||||||
|
if php --ri igbinary >/dev/null 2>/dev/null; then
|
||||||
|
addConfigureOption enable-igbinary yes
|
||||||
|
else
|
||||||
|
addConfigureOption enable-igbinary no
|
||||||
|
fi
|
||||||
|
# Enable json serializer support
|
||||||
|
if php --ri json >/dev/null 2>/dev/null; then
|
||||||
|
addConfigureOption enable-json yes
|
||||||
|
else
|
||||||
|
addConfigureOption enable-json no
|
||||||
|
fi
|
||||||
|
# Enable msgpack serializer support
|
||||||
|
if php --ri msgpack >/dev/null 2>/dev/null; then
|
||||||
|
addConfigureOption enable-msgpack yes
|
||||||
|
else
|
||||||
|
addConfigureOption enable-msgpack no
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
;;
|
||||||
yaml)
|
yaml)
|
||||||
if test -z "$installRemoteModule_version"; then
|
if test -z "$installRemoteModule_version"; then
|
||||||
if test $PHP_MAJMIN_VERSION -le 506; then
|
if test $PHP_MAJMIN_VERSION -le 506; then
|
||||||
|
31
scripts/tests/yac
Executable file
31
scripts/tests/yac
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o nounset
|
||||||
|
|
||||||
|
rc=0
|
||||||
|
if php --ri igbinary >/dev/null 2>/dev/null; then
|
||||||
|
if test -z "$(php --ri yac | grep 'Serializer => .*igbinary')"; then
|
||||||
|
echo 'yac has not been compiled with Igbinary support' >&2
|
||||||
|
rc=1
|
||||||
|
else
|
||||||
|
echo 'yac has been compiled with Igbinary support'
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if php --ri json >/dev/null 2>/dev/null; then
|
||||||
|
if test -z "$(php --ri yac | grep 'Serializer => .*json')"; then
|
||||||
|
echo 'yac has not been compiled with Json support' >&2
|
||||||
|
rc=1
|
||||||
|
else
|
||||||
|
echo 'yac has been compiled with Json support'
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if php --ri msgpack >/dev/null 2>/dev/null; then
|
||||||
|
if test -z "$(php --ri yac | grep 'Serializer => .*msgpack')"; then
|
||||||
|
echo 'yac has not been compiled with Msgpack support' >&2
|
||||||
|
rc=1
|
||||||
|
else
|
||||||
|
echo 'yac has been compiled with Msgpack support'
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
exit $rc
|
Loading…
Reference in New Issue
Block a user