Fixed building sockets on PHP 8.0 and PHP 8.1

This commit is contained in:
cytopia
2022-01-23 16:18:26 +01:00
parent ae9d987cb9
commit e156582252
3 changed files with 18 additions and 0 deletions

View File

@@ -457,6 +457,10 @@ RUN set -eux \
# -------------------- Installing PHP Extension: sockets --------------------
RUN set -eux \
# Version specific pre-command
&& docker-php-ext-configure sockets \
&& sed -i'' 's/.*ucred.*//g' /usr/src/php/ext/sockets/sendrecvmsg.c \
\
# Installation: Generic
# Type: Built-in extension
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) sockets \