Merge pull request #392 from llaville/feature/yac

Feature - Add support for yac
pull/403/head
Michele Locati 2021-08-02 17:36:45 +02:00 committed by GitHub
commit 0b54c17aba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 59 additions and 0 deletions

View File

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

View File

@ -2282,6 +2282,33 @@ installRemoteModule() {
addConfigureOption enable-reader yes
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)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -le 506; then

31
scripts/tests/yac Executable file
View 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