From: jazfresh at hotmail dot com Operating system: Linux Fedora Core PHP version: 5.0.3 PHP Bug Type: mbstring related Bug description: mb_decode_mimeheader is case-sensitive to hex escapes.
Description: ------------ This was reported in the tips section for this function, but I didn't find it in the bug database. The encoded text uses hex to represent escaped characters (e.g. "=3F" means the '?' character). RFC 2047 says that these hex digits can be either in upper or lower case. However, this function fails to convert them if the hex character is specified in lower case. Reproduce code: --------------- echo mb_decode_mimeheader("Works: =?iso-8859-1?q?=3F=3F=3F?="); echo "\n"; echo mb_decode_mimeheader("Fails: =?iso-8859-1?q?=3f=3f=3f?="); Expected result: ---------------- Works: ??? Fails: ??? Actual result: -------------- Works: ??? Fails: =?iso-8859-1?q?=3f=3f=3f?= -- Edit bug report at http://bugs.php.net/?id=31911&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31911&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31911&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31911&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31911&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31911&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31911&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31911&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31911&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31911&r=support Expected behavior: http://bugs.php.net/fix.php?id=31911&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31911&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31911&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31911&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31911&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31911&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31911&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31911&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31911&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31911&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31911&r=mysqlcfg