Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion php-80/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ RUN set -xe \
# Download yum repository data to cache
&& yum makecache \
# Install default development tools (gcc, make, etc)
&& yum groupinstall -y "Development Tools" --setopt=group_package_types=mandatory,default
&& yum groupinstall -y "Development Tools" --setopt=group_package_types=mandatory,default \
&& yum install -y libffi libffi-devel
Comment thread
mnapoli marked this conversation as resolved.
Outdated


# The default version of cmake is 2.8.12. We need cmake to build a few of
Expand Down Expand Up @@ -449,6 +450,7 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
--enable-intl=shared \
--enable-soap \
--with-xsl=${INSTALL_DIR} \
--with-ffi \
# necessary for `pecl` to work (to install PHP extensions)
--with-pear \
# extra compilation flags
Expand Down
4 changes: 3 additions & 1 deletion php-81/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ RUN set -xe \
# Download yum repository data to cache
&& yum makecache \
# Install default development tools (gcc, make, etc)
&& yum groupinstall -y "Development Tools" --setopt=group_package_types=mandatory,default
&& yum groupinstall -y "Development Tools" --setopt=group_package_types=mandatory,default \
&& yum install -y libffi libffi-devel


# The default version of cmake is 2.8.12. We need cmake to build a few of
Expand Down Expand Up @@ -470,6 +471,7 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
--enable-intl=shared \
--enable-soap \
--with-xsl=${INSTALL_DIR} \
--with-ffi \
# necessary for `pecl` to work (to install PHP extensions)
--with-pear \
# extra compilation flags
Expand Down
4 changes: 3 additions & 1 deletion php-82/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ RUN set -xe \
# Download yum repository data to cache
&& yum makecache \
# Install default development tools (gcc, make, etc)
&& yum groupinstall -y "Development Tools" --setopt=group_package_types=mandatory,default
&& yum groupinstall -y "Development Tools" --setopt=group_package_types=mandatory,default \
&& yum install -y libffi libffi-devel


# The default version of cmake is 2.8.12. We need cmake to build a few of
Expand Down Expand Up @@ -470,6 +471,7 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
--enable-intl=shared \
--enable-soap \
--with-xsl=${INSTALL_DIR} \
--with-ffi \
# necessary for `pecl` to work (to install PHP extensions)
--with-pear \
# extra compilation flags
Expand Down
4 changes: 3 additions & 1 deletion php-83/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ RUN set -xe \
# Download yum repository data to cache
&& yum makecache \
# Install default development tools (gcc, make, etc)
&& yum groupinstall -y "Development Tools" --setopt=group_package_types=mandatory,default
&& yum groupinstall -y "Development Tools" --setopt=group_package_types=mandatory,default \
&& yum install -y libffi libffi-devel


# The default version of cmake is 2.8.12. We need cmake to build a few of
Expand Down Expand Up @@ -470,6 +471,7 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
--enable-intl=shared \
--enable-soap \
--with-xsl=${INSTALL_DIR} \
--with-ffi \
# necessary for `pecl` to work (to install PHP extensions)
--with-pear \
# extra compilation flags
Expand Down
4 changes: 3 additions & 1 deletion php-84/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ RUN set -xe \
# Download yum repository data to cache
&& yum makecache \
# Install default development tools (gcc, make, etc)
&& yum groupinstall -y "Development Tools" --setopt=group_package_types=mandatory,default
&& yum groupinstall -y "Development Tools" --setopt=group_package_types=mandatory,default \
&& yum install -y libffi libffi-devel


# The default version of cmake is 2.8.12. We need cmake to build a few of
Expand Down Expand Up @@ -471,6 +472,7 @@ RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I
--enable-intl=shared \
--enable-soap \
--with-xsl=${INSTALL_DIR} \
--with-ffi \
# necessary for `pecl` to work (to install PHP extensions)
--with-pear \
# extra compilation flags
Expand Down
5 changes: 3 additions & 2 deletions tests/test_2_extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
'readline' => READLINE_LIB === 'readline',
'reflection' => class_exists(\ReflectionClass::class),
'session' => session_status() === PHP_SESSION_NONE,
'ffi' => class_exists(\FFI::class),
'zip' => class_exists(\ZipArchive::class),
'zlib' => md5(gzcompress('abcde')) === 'db245560922b42f1935e73e20b30980e',
];
Expand Down Expand Up @@ -94,11 +95,11 @@
if ($private_key === false) {
return false;
}

$public_key_pem = openssl_pkey_get_details($private_key)['key'];
$details = openssl_pkey_get_details(openssl_pkey_get_public($public_key_pem));
return $details['bits'] === 2048;
})(),
})(),
'json' => function_exists('json_encode'),
'bcmath' => function_exists('bcadd'),
'ctype' => function_exists('ctype_digit'),
Expand Down