Update comments

Fixed build with OpenSSL 3.0 with disabling useless RSA_SSLV23_PADDING (PHP 7.4, 8.0)

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun
2022-05-28 16:14:08 +09:00
parent a9b28f9d31
commit a3dcdeb57d

View File

@@ -28,6 +28,8 @@ upgrade_php(){
local php_extension_dir=$(get_php_extension_dir "${phpConfig}")
local installed_php=$(${php_location}/bin/php -r 'echo PHP_VERSION;' 2>/dev/null)
local configure_options=$(${phpConfig} --configure-options)
local openssl_version=$(openssl version -v)
local major_version=$(echo ${openssl_version} | awk '{print $2}' | grep -oE "[0-9.]+")
case "${php_version}" in
5.6)
@@ -95,6 +97,13 @@ upgrade_php(){
patch -p1 < ${cur_dir}/src/use-libenchant-2-when-available.patch
./buildconf -f
fi
# Fixed build with OpenSSL 3.0 with disabling useless RSA_SSLV23_PADDING
if [ "${php_version}" == "7.4" ] && version_ge ${major_version} 3.0.0; then
patch -p1 < ${cur_dir}/src/minimal_fix_for_openssl_3.0_php7.4.patch
fi
if [ "${php_version}" == "8.0" ] && version_ge ${major_version} 3.0.0; then
patch -p1 < ${cur_dir}/src/minimal_fix_for_openssl_3.0_php8.0.patch
fi
ldconfig
error_detect "./configure ${configure_options}"
error_detect "parallel_make"