Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Update zend-mail #12

@buskamuza

Description

@buskamuza

Important: Use libs-upgrade branch as base for this task and as target for the PR.

Issues found in zend-mail:

  1. INTL_IDNA_VARIANT_2003 is deprecated, and used as default value for idn_to_ascii() and idn_to_utf8(). See http://php.net/manual/en/migration72.deprecated.php for details.
    \Zend\Mail\Header\AbstractAddressList::idnToAscii() uses idn_to_ascii() with the default value. Explicit value INTL_IDNA_VARIANT_UTS46 should be used as $variant. There is a PR to fix it - Add PHP 7.2 support zendframework/zend-mail#189
  2. Usage of deprecated $errcontext parameter - create PR to the zend-mail repo

A use case to test: create a customer from the store front. Currently it fails with:

Deprecated Functionality: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in /private/var/www/htdocs/m2-php72/magento2ce/vendor/zendframework/zend-mail/src/Header/AbstractAddressList.php on line 105 {"exception":"[object] (Magento\\Framework\\Exception\\MailException(code: 0): Deprecated Functionality: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in /private/var/www/htdocs/m2-php72/magento2ce/vendor/zendframework/zend-mail/src/Header/AbstractAddressList.php on line 105 at /private/var/www/htdocs/m2-php72/magento2ce/app/code/Magento/Email/Model/Transport.php:87, Exception(code: 0): Deprecated Functionality: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in /private/var/www/htdocs/m2-php72/magento2ce/vendor/zendframework/zend-mail/src/Header/AbstractAddressList.php on line 105 at /private/var/www/htdocs/m2-php72/magento2ce/lib/internal/Magento/Framework/App/ErrorHandler.php:61)"} []

Solution: update to ver. 2.9.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions