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

From: Date: Tue, 02 Oct 2018 12:56:45 +0000
Subject: Bug #76958 [Ver->Asn]: Broken UTF7-IMAP conversion
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217352@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: nikic@php.net Reported by: alec@php.net Summary: Broken UTF7-IMAP conversion -Status: Verified +Status: Assigned Type: Bug Package: mbstring related Operating System: Linux PHP Version: 7.3.0RC2 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: Looks like I missed this encoding when moving convert_vtbl pointers into mbfl_encoding. Previous Comments: ------------------------------------------------------------------------ [2018-10-02 09:14:39] cmb@php.net Confirmed: <https://3v4l.org/4WIAn>. ------------------------------------------------------------------------ [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 (#217352) next »