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

Add support for event

Test: event+sockets
This commit is contained in:
Michele Locati 2021-08-03 10:38:36 +02:00
parent f0c4de6dd1
commit 7c3dbd2b9e
No known key found for this signature in database
GPG key ID: 98B7CE2E7234E28B
4 changed files with 105 additions and 0 deletions

21
scripts/tests/event Executable file
View file

@ -0,0 +1,21 @@
#!/bin/sh
set -o errexit
set -o nounset
rc=0
if php --ri sockets >/dev/null 2>/dev/null; then
if test -z "$(php --ri event | grep 'Sockets support => enabled')"; then
echo 'event has not been compiled with sockets support' >&2
rc=1
else
echo 'event has been compiled with sockets support'
fi
fi
if test -z "$(php --ri event | grep 'OpenSSL support => enabled')"; then
echo 'event has not been compiled with OpenSSL support' >&2
rc=1
else
echo 'event has been compiled with OpenSSL support'
fi
exit $rc