Bug #76958 [NEW]: Broken UTF7-IMAP conversion

From: Date: Tue, 02 Oct 2018 06:38:09 +0000
Subject: Bug #76958 [NEW]: Broken UTF7-IMAP conversion
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217344@lists.php.net to get a copy of this message
From: alec Operating system: Linux PHP version: 7.3.0RC2 Package: mbstring related Bug Type: Bug Bug description:Broken UTF7-IMAP conversion 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 bug report at https://bugs.php.net/bug.php?id=76958&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76958&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76958&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76958&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76958&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76958&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76958&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76958&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76958&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76958&r=support Expected behavior: https://bugs.php.net/fix.php?id=76958&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76958&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76958&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76958&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76958&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76958&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76958&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76958&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76958&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76958&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76958&r=mysqlcfg

« previous php.bugs (#217344) next »