From:             nirva-php at ishiboo dot com
Operating system: Solaris 8
PHP version:      4.3.3
PHP Bug Type:     Strings related
Bug description:  MB String Encoding types does not include "binary"

Description:
------------
in ext/mbstring/mbfilter.c, the mbfl_encoding_8bit variable should most
likely have a alias for "binary"

im using the mailparse library, and it uses mbstring to decode
Content-Transfer-Encoding: binary, and it fails.

i believe binary == 8bit, so the simplest solution is probably to add an
alias there.

static const char *mbfl_encoding_8bit_aliases[] = {"binary", NULL};

static const mbfl_encoding mbfl_encoding_8bit = {
        mbfl_no_encoding_8bit,
        "8bit",
        "8bit",
        (const char *(*)[])&mbfl_encoding_8bit_aliases,
        NULL,
        MBFL_ENCTYPE_SBCS
};



-- 
Edit bug report at http://bugs.php.net/?id=26699&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26699&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26699&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26699&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26699&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26699&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26699&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26699&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26699&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26699&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26699&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26699&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26699&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26699&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26699&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26699&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26699&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26699&r=float

Reply via email to