mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-11 03:21:15 +00:00
Show tests that are skipped
This commit is contained in:
@@ -43,6 +43,7 @@ RUN set -eux \
|
||||
libtidy-dev \
|
||||
libvpx-dev \
|
||||
libwebp-dev \
|
||||
libwebp6 \
|
||||
libxml2-dev \
|
||||
libxpm-dev \
|
||||
libxslt-dev \
|
||||
|
||||
@@ -43,6 +43,7 @@ RUN set -eux \
|
||||
libtidy-dev \
|
||||
libvpx-dev \
|
||||
libwebp-dev \
|
||||
libwebp6 \
|
||||
libxml2-dev \
|
||||
libxpm-dev \
|
||||
libxslt-dev \
|
||||
|
||||
@@ -43,6 +43,7 @@ RUN set -eux \
|
||||
libtidy-dev \
|
||||
libvpx-dev \
|
||||
libwebp-dev \
|
||||
libwebp6 \
|
||||
libxml2-dev \
|
||||
libxpm-dev \
|
||||
libxslt-dev \
|
||||
@@ -752,6 +753,7 @@ RUN set -eux \
|
||||
libsybdb5 \
|
||||
libtidy5deb1 \
|
||||
libvpx5 \
|
||||
libwebp-dev \
|
||||
libwebp6 \
|
||||
libxpm4 \
|
||||
libxslt1.1 \
|
||||
|
||||
@@ -43,6 +43,7 @@ RUN set -eux \
|
||||
libtidy-dev \
|
||||
libvpx-dev \
|
||||
libwebp-dev \
|
||||
libwebp6 \
|
||||
libxml2-dev \
|
||||
libxpm-dev \
|
||||
libxslt-dev \
|
||||
@@ -756,6 +757,7 @@ RUN set -eux \
|
||||
libsybdb5 \
|
||||
libtidy5deb1 \
|
||||
libvpx5 \
|
||||
libwebp-dev \
|
||||
libwebp6 \
|
||||
libxpm4 \
|
||||
libxslt1.1 \
|
||||
|
||||
@@ -45,6 +45,7 @@ RUN set -eux \
|
||||
libtidy-dev \
|
||||
libvpx-dev \
|
||||
libwebp-dev \
|
||||
libwebp6 \
|
||||
libxml2-dev \
|
||||
libxpm-dev \
|
||||
libxslt-dev \
|
||||
@@ -754,6 +755,7 @@ RUN set -eux \
|
||||
libsybdb5 \
|
||||
libtidy5deb1 \
|
||||
libvpx5 \
|
||||
libwebp-dev \
|
||||
libwebp6 \
|
||||
libxpm4 \
|
||||
libxslt1.1 \
|
||||
|
||||
@@ -41,6 +41,7 @@ RUN set -eux \
|
||||
libtidy-dev \
|
||||
libvpx-dev \
|
||||
libwebp-dev \
|
||||
libwebp6 \
|
||||
libxml2-dev \
|
||||
libxpm-dev \
|
||||
libxslt-dev \
|
||||
@@ -185,7 +186,7 @@ RUN set -eux \
|
||||
|
||||
# -------------------- Installing PHP Extension: imagick --------------------
|
||||
RUN set -eux \
|
||||
# Installation: Version specific
|
||||
# Installation: Generic
|
||||
# Type: PECL extension
|
||||
# Default: Pecl command
|
||||
&& pecl install imagick \
|
||||
@@ -196,9 +197,8 @@ RUN set -eux \
|
||||
|
||||
# -------------------- Installing PHP Extension: intl --------------------
|
||||
RUN set -eux \
|
||||
# Installation: Version specific
|
||||
# Installation: Generic
|
||||
# Type: Built-in extension
|
||||
# Installation
|
||||
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl \
|
||||
&& true
|
||||
|
||||
@@ -389,21 +389,6 @@ RUN set -eux \
|
||||
&& true
|
||||
|
||||
|
||||
# -------------------- Installing PHP Extension: phalcon --------------------
|
||||
RUN set -eux \
|
||||
# Installation: Generic
|
||||
# Type: GIT extension
|
||||
&& git clone https://github.com/phalcon/cphalcon /tmp/phalcon \
|
||||
&& cd /tmp/phalcon \
|
||||
# Custom: Branch
|
||||
&& git checkout $(git for-each-ref --format='%(*creatordate:raw)%(creatordate:raw) %(refname)' refs/tags | sort -n | sed 's/^.*tags\///g' | grep -E '^v[.0-9]+$' | tail -1) \
|
||||
# Custom: Install command
|
||||
&& cd build && ./install \
|
||||
# Enabling
|
||||
&& docker-php-ext-enable phalcon \
|
||||
&& true
|
||||
|
||||
|
||||
# -------------------- Installing PHP Extension: pspell --------------------
|
||||
RUN set -eux \
|
||||
# Installation: Generic
|
||||
@@ -434,10 +419,10 @@ RUN set -eux \
|
||||
|
||||
# -------------------- Installing PHP Extension: rdkafka --------------------
|
||||
RUN set -eux \
|
||||
# Installation: Version specific
|
||||
# Installation: Generic
|
||||
# Type: PECL extension
|
||||
# Default: Pecl command
|
||||
&& pecl install rdkafka-3.1.2 \
|
||||
&& pecl install rdkafka \
|
||||
# Enabling
|
||||
&& docker-php-ext-enable rdkafka \
|
||||
&& true
|
||||
@@ -529,9 +514,8 @@ RUN set -eux \
|
||||
|
||||
# -------------------- Installing PHP Extension: tidy --------------------
|
||||
RUN set -eux \
|
||||
# Installation: Version specific
|
||||
# Installation: Generic
|
||||
# Type: Built-in extension
|
||||
# Installation
|
||||
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy \
|
||||
&& true
|
||||
|
||||
@@ -653,10 +637,10 @@ RUN set -eux \
|
||||
libfbclient2 \
|
||||
libffi6 \
|
||||
libfreetype6 \
|
||||
libhiredis0.13 \
|
||||
libicu57 \
|
||||
libhiredis0.14 \
|
||||
libicu63 \
|
||||
libjpeg62-turbo \
|
||||
libmagickwand-6.q16-3 \
|
||||
libmagickwand-6.q16-6 \
|
||||
libmcrypt4 \
|
||||
libmemcachedutil2 \
|
||||
libnghttp2-14 \
|
||||
@@ -665,8 +649,9 @@ RUN set -eux \
|
||||
librabbitmq4 \
|
||||
librdkafka1 \
|
||||
libsybdb5 \
|
||||
libtidy5 \
|
||||
libvpx4 \
|
||||
libtidy5deb1 \
|
||||
libvpx5 \
|
||||
libwebp-dev \
|
||||
libwebp6 \
|
||||
libxpm4 \
|
||||
libxslt1.1 \
|
||||
@@ -800,8 +785,6 @@ RUN set -eux \
|
||||
&& php-fpm -m | grep -oiE '^pdo_sqlite$' \
|
||||
&& php -m | grep -oiE '^pgsql$' \
|
||||
&& php-fpm -m | grep -oiE '^pgsql$' \
|
||||
&& php -m | grep -oiE '^phalcon$' \
|
||||
&& php-fpm -m | grep -oiE '^phalcon$' \
|
||||
&& php -m | grep -oiE '^phar$' \
|
||||
&& php-fpm -m | grep -oiE '^phar$' \
|
||||
&& php -m | grep -oiE '^posix$' \
|
||||
|
||||
@@ -139,9 +139,8 @@ RUN set -eux \
|
||||
|
||||
# -------------------- Installing PHP Extension: intl --------------------
|
||||
RUN set -eux \
|
||||
# Installation: Version specific
|
||||
# Installation: Generic
|
||||
# Type: Built-in extension
|
||||
# Installation
|
||||
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) intl \
|
||||
&& true
|
||||
|
||||
@@ -453,9 +452,8 @@ RUN set -eux \
|
||||
|
||||
# -------------------- Installing PHP Extension: tidy --------------------
|
||||
RUN set -eux \
|
||||
# Installation: Version specific
|
||||
# Installation: Generic
|
||||
# Type: Built-in extension
|
||||
# Installation
|
||||
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) tidy \
|
||||
&& true
|
||||
|
||||
@@ -573,14 +571,14 @@ RUN set -eux \
|
||||
libfbclient2 \
|
||||
libffi6 \
|
||||
libfreetype6 \
|
||||
libicu57 \
|
||||
libicu63 \
|
||||
libjpeg62-turbo \
|
||||
libmemcachedutil2 \
|
||||
libpng16-16 \
|
||||
libpq5 \
|
||||
libsybdb5 \
|
||||
libtidy5 \
|
||||
libvpx4 \
|
||||
libtidy5deb1 \
|
||||
libvpx5 \
|
||||
libwebp6 \
|
||||
libxpm4 \
|
||||
libxslt1.1 \
|
||||
|
||||
@@ -87,7 +87,7 @@ RUN set -eux \
|
||||
mongodb-org-shell \
|
||||
mongodb-org-tools \
|
||||
moreutils \
|
||||
mysql-client \
|
||||
mariadb-client \
|
||||
nano \
|
||||
net-tools \
|
||||
netcat \
|
||||
@@ -305,7 +305,7 @@ RUN set -eux \
|
||||
&& VERSION="$( curl -sSL https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+stretch_amd64\.deb' | head -1 )" \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||
&& curl -sS -L -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
|
||||
@@ -87,7 +87,7 @@ RUN set -eux \
|
||||
mongodb-org-shell \
|
||||
mongodb-org-tools \
|
||||
moreutils \
|
||||
mysql-client \
|
||||
mariadb-client \
|
||||
nano \
|
||||
net-tools \
|
||||
netcat \
|
||||
@@ -243,7 +243,7 @@ RUN set -eux \
|
||||
&& VERSION="$( curl -sSL https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+stretch_amd64\.deb' | head -1 )" \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||
libfontenc1 libxfont1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||
&& curl -sS -L -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
|
||||
@@ -101,7 +101,7 @@ RUN set -eux \
|
||||
mongodb-org-shell \
|
||||
mongodb-org-tools \
|
||||
moreutils \
|
||||
{% if php_version in [7.1, 7.2, 7.3] %}
|
||||
{% if php_version in [7.1, 7.2, 7.3, 7.4, 8.0] %}
|
||||
mariadb-client \
|
||||
{% else %}
|
||||
mysql-client \
|
||||
|
||||
@@ -295,11 +295,9 @@ extensions_available:
|
||||
7.4:
|
||||
type: builtin
|
||||
configure: --enable-gd --with-webp --with-jpeg --with-xpm --with-freetype --enable-gd-jis-conv
|
||||
run_dep: [libpng16-16, libjpeg62-turbo, libxpm4, libvpx4, libfreetype6, libwebp6]
|
||||
8.0:
|
||||
type: builtin
|
||||
configure: --enable-gd --with-webp --with-jpeg --with-xpm --with-freetype --enable-gd-jis-conv
|
||||
run_dep: [libpng16-16, libjpeg62-turbo, libxpm4, libvpx4, libfreetype6, libwebp6]
|
||||
all:
|
||||
type: builtin
|
||||
pre: ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/
|
||||
@@ -342,17 +340,14 @@ extensions_available:
|
||||
disabled: [5.2, 5.3, 5.4, 5.5, 8.0] # 5.3, 5.4 and 5.5 segfaults
|
||||
5.6:
|
||||
type: pecl
|
||||
run_dep: [libmagickwand-6.q16-3]
|
||||
run_dep: [libmagickwand-6.q16-3, libwebp6]
|
||||
7.0:
|
||||
type: pecl
|
||||
run_dep: [libmagickwand-6.q16-3]
|
||||
7.4:
|
||||
type: pecl
|
||||
run_dep: [libmagickwand-6.q16-3]
|
||||
run_dep: [libmagickwand-6.q16-3, libwebp6]
|
||||
all:
|
||||
type: pecl
|
||||
build_dep: [libmagickwand-dev]
|
||||
run_dep: [libmagickwand-6.q16-6]
|
||||
build_dep: [libmagickwand-dev, libwebp6]
|
||||
run_dep: [libmagickwand-6.q16-6, libwebp-dev]
|
||||
imap:
|
||||
disabled: [7.4, 8.0] # TODO: re-enable. currently fails with: configure: error: OpenSSL libraries not found.
|
||||
all:
|
||||
@@ -386,12 +381,6 @@ extensions_available:
|
||||
7.0:
|
||||
type: builtin
|
||||
run_dep: [libicu57]
|
||||
7.4:
|
||||
type: builtin
|
||||
run_dep: [libicu57]
|
||||
8.0:
|
||||
type: builtin
|
||||
run_dep: [libicu57]
|
||||
all:
|
||||
type: builtin
|
||||
build_dep: [libicu-dev]
|
||||
@@ -674,16 +663,16 @@ extensions_available:
|
||||
build_dep: [zlib1g-dev]
|
||||
pdo_oci:
|
||||
disabled: [5.2, 5.3, 5.4, 5.5, 5.6]
|
||||
8.0:
|
||||
type: builtin
|
||||
configure: --with-pdo-oci=instantclient,/usr/lib/oracle/${ORACLE_VERSION_MAJOR}/client64/lib/,${ORACLE_VERSION_MAJOR}
|
||||
7.4:
|
||||
7.2:
|
||||
type: builtin
|
||||
configure: --with-pdo-oci=instantclient,/usr/lib/oracle/${ORACLE_VERSION_MAJOR}/client64/lib/,${ORACLE_VERSION_MAJOR}
|
||||
7.3:
|
||||
type: builtin
|
||||
configure: --with-pdo-oci=instantclient,/usr/lib/oracle/${ORACLE_VERSION_MAJOR}/client64/lib/,${ORACLE_VERSION_MAJOR}
|
||||
7.2:
|
||||
7.4:
|
||||
type: builtin
|
||||
configure: --with-pdo-oci=instantclient,/usr/lib/oracle/${ORACLE_VERSION_MAJOR}/client64/lib/,${ORACLE_VERSION_MAJOR}
|
||||
8.0:
|
||||
type: builtin
|
||||
configure: --with-pdo-oci=instantclient,/usr/lib/oracle/${ORACLE_VERSION_MAJOR}/client64/lib/,${ORACLE_VERSION_MAJOR}
|
||||
all:
|
||||
@@ -731,7 +720,7 @@ extensions_available:
|
||||
build_dep: [libpq-dev]
|
||||
run_dep: [libpq5]
|
||||
phalcon:
|
||||
disabled: [5.2, 8.0] # TODO: currently disabled for 7.4 as it breaks
|
||||
disabled: [5.2, 7.4, 8.0] # TODO: currently disabled for 7.4 as it breaks
|
||||
5.3:
|
||||
type: git
|
||||
git_url: https://github.com/phalcon/cphalcon
|
||||
@@ -856,9 +845,6 @@ extensions_available:
|
||||
7.0:
|
||||
type: pecl
|
||||
version: 3.1.2
|
||||
7.4:
|
||||
type: pecl
|
||||
version: 3.1.2
|
||||
all:
|
||||
type: pecl
|
||||
build_dep: [librdkafka-dev]
|
||||
@@ -954,7 +940,7 @@ extensions_available:
|
||||
--enable-coroutine-postgresql \
|
||||
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||
&& make install \
|
||||
run_dep: [libnghttp2-14, libhiredis0.13]
|
||||
run_dep: [libnghttp2-14, libhiredis0.14]
|
||||
build_dep: [libnghttp2-dev, libssl-dev, libhiredis-dev, libpq-dev, cmake]
|
||||
all:
|
||||
type: pecl
|
||||
@@ -988,12 +974,6 @@ extensions_available:
|
||||
7.0:
|
||||
type: builtin
|
||||
run_dep: [libtidy5]
|
||||
7.4:
|
||||
type: builtin
|
||||
run_dep: [libtidy5]
|
||||
8.0:
|
||||
type: builtin
|
||||
run_dep: [libtidy5]
|
||||
all:
|
||||
type: builtin
|
||||
build_dep: [libtidy-dev]
|
||||
|
||||
@@ -727,6 +727,22 @@ software_available:
|
||||
&& curl -sS -L -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
7.4:
|
||||
command: |
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||
&& curl -sS -L -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
8.0:
|
||||
command: |
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update -qq \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests \
|
||||
libfontenc1 libxfont2 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils \
|
||||
&& curl -sS -L -o /tmp/wkhtmltopdf.deb https://github.com/${VERSION} \
|
||||
&& dpkg -i /tmp/wkhtmltopdf.deb \
|
||||
&& rm -f /tmp/wkhtmltopdf.deb \
|
||||
all:
|
||||
pre: VERSION="$( curl -sSL https://github.com/wkhtmltopdf/wkhtmltopdf/releases | grep -Eo '/wkhtmltopdf/.+stretch_amd64\.deb' | head -1 )"
|
||||
command: |
|
||||
|
||||
@@ -64,7 +64,7 @@ docker run \
|
||||
if script -e -c \"php \${1}\" /dev/null 2>&1 | grep -Ei \"core|segmentation|fatal|except|err|warn|notice\" 2>&1 >/dev/null; then
|
||||
fail=1
|
||||
fi
|
||||
if ! php \"\${1}\" 2>&1 | grep -E \"^OK$\" 2>&1 >/dev/null; then
|
||||
if ! php \"\${1}\" 2>&1 | grep -E \"^(OK|SKIP)$\" 2>&1 >/dev/null; then
|
||||
fail=1
|
||||
fi
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ error_reporting(-1);
|
||||
|
||||
// Only available since 5.4.0
|
||||
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
|
||||
echo 'OK';
|
||||
echo 'SKIP';
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
52
tests/mods/modules/imagick/imagick-jpeg.php
Normal file
52
tests/mods/modules/imagick/imagick-jpeg.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* This page should print 'OK' if everything works,
|
||||
* 'FAIL' or nothing if an error occured.
|
||||
*/
|
||||
ini_set('display_startup_errors', 1);
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(-1);
|
||||
|
||||
$PHP_VERSION = str_replace('-dev', '', PHP_VERSION);
|
||||
|
||||
// Only available since 5.3.0 (PHP 5.3, 5.4 and 5.5 segfaults)
|
||||
if (version_compare($PHP_VERSION, '5.6.0', '<')) {
|
||||
echo 'SKIP';
|
||||
exit(0);
|
||||
}
|
||||
// FIXME: Currently not supported on PHP 8
|
||||
if (version_compare($PHP_VERSION, '8.0.0', '>=')) {
|
||||
echo 'SKIP';
|
||||
exit(0);
|
||||
}
|
||||
|
||||
/* Set width and height in proportion of genuine PHP logo */
|
||||
$width = 400;
|
||||
$height = 210;
|
||||
|
||||
/* Create an Imagick object with transparent canvas */
|
||||
$img = new Imagick();
|
||||
|
||||
if ($img->newImage($width, $height, new ImagickPixel('transparent')) !== TRUE) {
|
||||
echo 'FAIL: newImage()';
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* New ImagickDraw instance for ellipse draw */
|
||||
$draw = new ImagickDraw();
|
||||
/* Set purple fill color for ellipse */
|
||||
$draw->setFillColor('#777bb4');
|
||||
/* Set ellipse dimensions */
|
||||
$draw->ellipse($width / 2, $height / 2, $width / 2, $height / 2, 0, 360);
|
||||
/* Draw ellipse onto the canvas */
|
||||
$img->drawImage($draw);
|
||||
|
||||
/* Reset fill color from purple to black for text (note: we are reusing ImagickDraw object) */
|
||||
$draw->setFillColor('black');
|
||||
|
||||
if ($img->setImageFormat('jpeg') !== TRUE) {
|
||||
echo 'FAIL: setImageFormat()';
|
||||
exit(1);
|
||||
}
|
||||
|
||||
echo 'OK';
|
||||
@@ -7,15 +7,16 @@ ini_set('display_startup_errors', 1);
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(-1);
|
||||
|
||||
$PHP_VERSION = str_replace('-dev', '', PHP_VERSION);
|
||||
|
||||
// Only available since 5.3.0 (PHP 5.3, 5.4 and 5.5 segfaults)
|
||||
if (version_compare(PHP_VERSION, '5.6.0', '<')) {
|
||||
echo 'OK';
|
||||
if (version_compare($PHP_VERSION, '5.6.0', '<')) {
|
||||
echo 'SKIP';
|
||||
exit(0);
|
||||
}
|
||||
// FIXME: Currently not supported on PHP 8
|
||||
if (version_compare(PHP_VERSION, '5.8.0', '>=')) {
|
||||
echo 'OK';
|
||||
if (version_compare($PHP_VERSION, '8.0.0', '>=')) {
|
||||
echo 'SKIP';
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,15 +7,16 @@ ini_set('display_startup_errors', 1);
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(-1);
|
||||
|
||||
$PHP_VERSION = str_replace('-dev', '', PHP_VERSION);
|
||||
|
||||
// Only available since 5.3.0 (PHP 5.3, 5.4 and 5.5 segfaults)
|
||||
if (version_compare(PHP_VERSION, '5.6.0', '<')) {
|
||||
echo 'OK';
|
||||
// Web support only since 7.2+
|
||||
if (version_compare($PHP_VERSION, '7.1.0', '<=')) {
|
||||
echo 'SKIP';
|
||||
exit(0);
|
||||
}
|
||||
// FIXME: Currently not supported on PHP 8
|
||||
if (version_compare(PHP_VERSION, '5.8.0', '>=')) {
|
||||
echo 'OK';
|
||||
if (version_compare($PHP_VERSION, '8.0.0', '>=')) {
|
||||
echo 'SKIP';
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user