Вот пример кода, который ведет себя по-разному с
Код: Выделить всё
phpbrew's php 7.1.5-
Код: Выделить всё
docker container with php 7.1.15$DOMDocument = new DOMDocument;Код: Выделить всё
$elementMarkup = ' Title ';
$elementMarkup = mb_convert_encoding($elementMarkup, 'HTML-ENTITIES', 'UTF-8');
$DOMDocument->loadHTML($elementMarkup);
$DOMDocument->removeChild($DOMDocument->doctype);
$DOMDocument->replaceChild($DOMDocument->firstChild->firstChild->firstChild, $DOMDocument->firstChild);
Код: Выделить всё
$DOMDocument->firstChild->firstChild->firstChildКод: Выделить всё
metaBut dockerized php cathes
Код: Выделить всё
nullDockerfile
Код: Выделить всё
FROM php:7.1-fpm-alpine
RUN apk upgrade --update && apk --no-cache add \
bash nodejs autoconf file g++ gcc binutils isl libatomic libc-dev musl-dev make re2c libstdc++ libgcc libcurl \
curl-dev binutils-libs mpc1 mpfr3 gmp libgomp coreutils freetype-dev libjpeg-turbo-dev libltdl libmcrypt-dev \
libpng-dev openssl-dev libxml2-dev expat-dev icu-dev libxslt libxslt-dev
RUN docker-php-ext-install -j$(nproc) iconv mysqli pdo pdo_mysql curl bcmath mcrypt mbstring json xml zip opcache intl xsl \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd
RUN apk --no-cache add libintl gettext-dev
RUN docker-php-ext-install -j$(nproc) gettext
RUN apk add --no-cache $PHPIZE_DEPS \
&& echo no | pecl install redis \
&& docker-php-ext-enable redis
RUN apk add --no-cache $PHPIZE_DEPS \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug
CMD ["php-fpm"]
Источник: https://stackoverflow.com/questions/496 ... igurations