-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# shellcheck source=/dev/null | ||
source dev-container-features-test-lib | ||
|
||
check "php exists" which php | ||
check "php-fpm exists" which php-fpm | ||
check "pecl exists" which pecl | ||
check "pear exists" which pear | ||
check "composer exists" which composer | ||
check "www-data user exists" getent passwd www-data | ||
check "www-data group exists" getent group www-data | ||
|
||
php -m | ||
|
||
# gnupg is not available on Alpine | ||
MODULES="apcu bcmath calendar ctype curl date dom exif fileinfo filter ftp gd gmagick gmp hash iconv igbinary intl json libxml mbstring mcrypt memcache memcached mysqli mysqlnd openssl pcntl pcre pdo_mysql pdo_sqlite phar posix random reflection session shmop simplexml soap sockets sodium sqlite3 ssh2 sysvsem sysvshm timezonedb tokenizer xml xmlreader xmlwriter zip zlib" | ||
for module in $MODULES; do | ||
check "PHP module ${module} exists" sh -c "php -m | grep -qi ^${module}$" | ||
done | ||
|
||
reportResults |