Verified Commit 642bd3e3 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Disable building opcache module for PHP>=8.5

parent 4071e9fb
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@ PHP_EXT=(
	gd
	gmp
	mysqli
	opcache
	sockets
	zip
)
@@ -24,5 +23,10 @@ if php_version -gt 7.4; then
else
	GD_ARGS=( --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr )
fi

if php_version -lt 8.5; then
	PHP_EXT+=(opcache)
fi

docker-php-ext-configure gd "${GD_ARGS[@]}"
docker-php-ext-install -j$(nproc) "${PHP_EXT[@]}"