Skip to content

Commit 74a6189

Browse files
committed
Update the PHP 8.3 config following changes in the zlib install instructions
1 parent 5735acf commit 74a6189

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

php-83/Dockerfile

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,26 +72,18 @@ RUN mkdir -p ${BUILD_DIR} \
7272

7373
###############################################################################
7474
# ZLIB Build
75+
# We compile a newer version because Lambda uses an old version (1.2.7) that
76+
# has a security vulnerability (CVE-2022-37434).
77+
# See https://github.com/brefphp/aws-lambda-layers/pull/110
78+
# Can be removed once Lambda updates their version.
7579
# https://github.com/madler/zlib/releases
76-
# Needed for:
77-
# - openssl
78-
# - curl
79-
# - php
80-
# Used By:
81-
# - xml2
8280
ENV VERSION_ZLIB=1.3
83-
ENV ZLIB_BUILD_DIR=${BUILD_DIR}/xml2
84-
81+
ENV ZLIB_BUILD_DIR=${BUILD_DIR}/zlib
8582
RUN set -xe; \
8683
mkdir -p ${ZLIB_BUILD_DIR}; \
87-
# Download and upack the source code
88-
curl -Ls http://zlib.net/zlib-${VERSION_ZLIB}.tar.xz \
84+
curl -Ls https://zlib.net/zlib-${VERSION_ZLIB}.tar.xz \
8985
| tar xJC ${ZLIB_BUILD_DIR} --strip-components=1
90-
91-
# Move into the unpackaged code directory
9286
WORKDIR ${ZLIB_BUILD_DIR}/
93-
94-
# Configure the build
9587
RUN set -xe; \
9688
make distclean \
9789
&& CFLAGS="" \

0 commit comments

Comments
 (0)