php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #26699 mbstring doesn't identify "binary" as a valid encoding name
Submitted: 2003-12-22 18:39 UTC Modified: 2004-01-25 19:29 UTC
From: nirva-php at ishiboo dot com Assigned: moriyoshi (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 4.3.3 OS: Solaris 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nirva-php at ishiboo dot com
New email:
PHP Version: OS:

 

 [2003-12-22 18:39 UTC] nirva-php at ishiboo dot com
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
};



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-25 19:29 UTC] moriyoshi@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 00:01:30 2024 UTC