Bug #76958 [Opn->Ver]: Broken UTF7-IMAP conversion

From: Date: Tue, 02 Oct 2018 09:14:39 +0000
Subject: Bug #76958 [Opn->Ver]: Broken UTF7-IMAP conversion
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217346@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76958&edit=1 ID: 76958 Updated by: cmb@php.net Reported by: alec@php.net Summary: Broken UTF7-IMAP conversion -Status: Open +Status: Verified Type: Bug Package: mbstring related Operating System: Linux PHP Version: 7.3.0RC2 Block user comment: N Private report: N New Comment: Confirmed: <https://3v4l.org/4WIAn>. Previous Comments: ------------------------------------------------------------------------ [2018-10-02 06:49:15] alec@php.net Sorry, I cut one character from the actual result. It looks like this: &BCAEMARBBEEESwQ7BDoEOA- 0AAK;:8 ------------------------------------------------------------------------ [2018-10-02 06:38:09] alec@php.net Description: ------------ I'm testing PHP 7.3.0RC2 (cli) (built: Oct 1 2018 11:46:48) ( NTS ) Ondrej's PPA on Ubuntu 18.04. It looks like conversion to/from UTF7-IMAP encoding is broken. See simple test script. It works as expected on PHP <= 7.2. Test script: --------------- $str = '&BCAEMARBBEEESwQ7BDoEOA-'; echo mb_convert_encoding($str, 'UTF-8', 'UTF7-IMAP') . "\n"; $str = 'Рассылки'; echo mb_convert_encoding($str, 'UTF7-IMAP', 'UTF-8') . "\n"; Expected result: ---------------- Рассылки &BCAEMARBBEEESwQ7BDoEOA- Actual result: -------------- BCAEMARBBEEESwQ7BDoEOA- 0AAK;:8 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76958&edit=1

« previous php.bugs (#217346) next »