Skip to content

Commit 0594681

Browse files
Fixing the php ext already loaded warnings
Example: ``` warning: exif (exif.so) is already loaded! ```
1 parent f5478cf commit 0594681

3 files changed

Lines changed: 7 additions & 12 deletions

File tree

php-fpm/Dockerfile-56

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
114114
ARG INSTALL_EXIF=false
115115
RUN if [ ${INSTALL_EXIF} = true ]; then \
116116
# Enable Exif PHP extentions requirements
117-
docker-php-ext-install exif && \
118-
docker-php-ext-enable exif \
117+
docker-php-ext-install exif \
119118
;fi
120119

121120
#####################################
@@ -147,8 +146,7 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
147146

148147
ARG INSTALL_OPCACHE=false
149148
RUN if [ ${INSTALL_OPCACHE} = true ]; then \
150-
docker-php-ext-install opcache && \
151-
docker-php-ext-enable opcache \
149+
docker-php-ext-install opcache \
152150
;fi
153151

154152
# Copy opcache configration

php-fpm/Dockerfile-70

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
135135
ARG INSTALL_EXIF=false
136136
RUN if [ ${INSTALL_EXIF} = true ]; then \
137137
# Enable Exif PHP extentions requirements
138-
docker-php-ext-install exif && \
139-
docker-php-ext-enable exif \
138+
docker-php-ext-install exif \
140139
;fi
141140

142141

@@ -168,8 +167,7 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
168167
#####################################
169168
ARG INSTALL_OPCACHE=false
170169
RUN if [ ${INSTALL_OPCACHE} = true ]; then \
171-
docker-php-ext-install opcache && \
172-
docker-php-ext-enable opcache \
170+
docker-php-ext-install opcache \
173171
;fi
174172

175173
# Copy opcache configration

php-fpm/Dockerfile-71

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
113113
ARG INSTALL_EXIF=false
114114
RUN if [ ${INSTALL_EXIF} = true ]; then \
115115
# Enable Exif PHP extentions requirements
116-
docker-php-ext-install exif && \
117-
docker-php-ext-enable exif \
116+
docker-php-ext-install exif \
118117
;fi
119118

120119
#####################################
@@ -137,15 +136,15 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
137136
&& make install \
138137
) \
139138
&& rm /tmp/aerospike-client-php.tar.gz \
139+
&& docker-php-ext-enable aerospike \
140140
;fi
141141

142142
#####################################
143143
# Opcache:
144144
#####################################
145145
ARG INSTALL_OPCACHE=false
146146
RUN if [ ${INSTALL_OPCACHE} = true ]; then \
147-
docker-php-ext-install opcache && \
148-
docker-php-ext-enable opcache \
147+
docker-php-ext-install opcache \
149148
;fi
150149

151150
# Copy opcache configration

0 commit comments

Comments
 (0)