futureweb
Regular Pleskian
TITLE:
INTL EXT compiled against old ICU
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:PHP 7.2 (and older), Plesk Onyx (Linux, Centos 6.9)
PROBLEM DESCRIPTION:INTL EXT is compiled against old ICU Version which leads to Problems since INTL_IDNA_VARIANT_2003 is deprecated in PHP 7.2:
normally no problem ... just change Variant:
But this is not working with INTL compiled against this old ICU ...
Reference: Issue - Latest Plesk Onyx - PHP 7.2 - INTL EXT Problem (compiled against old ICU)
STEPS TO REPRODUCE:
Code:
mod_fcgid: stderr: PHP Deprecated: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated
normally no problem ... just change Variant:
Code:
$email = idn_to_ascii("österreich.at"); //DEPRECATED
$email1 = idn_to_ascii("österreich.at", 0, INTL_IDNA_VARIANT_UTS46); //NORMALLY OK SINCE PHP 5.x ...
But this is not working with INTL compiled against this old ICU ...
Code:
mod_fcgid: stderr: PHP Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46 - assumed 'INTL_IDNA_VARIANT_UTS46'
Reference: Issue - Latest Plesk Onyx - PHP 7.2 - INTL EXT Problem (compiled against old ICU)
use idn_to_ascii() with Plesk compiled PHP 7.2 ;-)
ACTUAL RESULT:
Code:
$email = idn_to_ascii("österreich.at"); //DEPRECATED
$email1 = idn_to_ascii("österreich.at", 0, INTL_IDNA_VARIANT_UTS46); //NORMALLY OK SINCE PHP 5.x ...
either deprecation warning or undefined constant
EXPECTED RESULT:
Code:
mod_fcgid: stderr: PHP Deprecated: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated
mod_fcgid: stderr: PHP Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46 - assumed 'INTL_IDNA_VARIANT_UTS46'
no Error
ANY ADDITIONAL INFORMATION:
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:Confirm bug / deliver updated ICU Package with Plesk
Last edited: