Skip to content

Commit acac6eb

Browse files
authored
fix PHP Warning: PHP Startup: Unable to load dynamic library 'phalcon.so' (laradock#1947)
when install APCu and no install Phalcon.
1 parent 04f0715 commit acac6eb

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

php-fpm/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -530,18 +530,19 @@ ARG INSTALL_PHALCON=false
530530
ARG LARADOCK_PHALCON_VERSION
531531
ENV LARADOCK_PHALCON_VERSION ${LARADOCK_PHALCON_VERSION}
532532

533+
# Copy phalcon configration
534+
COPY ./phalcon.ini /usr/local/etc/php/conf.d/phalcon.ini.disable
535+
533536
RUN if [ $INSTALL_PHALCON = true ]; then \
534537
apt-get update && apt-get install -y unzip libpcre3-dev gcc make re2c \
535538
&& curl -L -o /tmp/cphalcon.zip https://github.com/phalcon/cphalcon/archive/v${LARADOCK_PHALCON_VERSION}.zip \
536539
&& unzip -d /tmp/ /tmp/cphalcon.zip \
537540
&& cd /tmp/cphalcon-${LARADOCK_PHALCON_VERSION}/build \
538541
&& ./install \
542+
&& mv /usr/local/etc/php/conf.d/phalcon.ini.disable /usr/local/etc/php/conf.d/phalcon.ini \
539543
&& rm -rf /tmp/cphalcon* \
540544
;fi
541545

542-
# Copy phalcon configration
543-
COPY ./phalcon.ini /usr/local/etc/php/conf.d/phalcon.ini
544-
545546
###########################################################################
546547
# APCU:
547548
###########################################################################

0 commit comments

Comments
 (0)