FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=7242&edit=1

ID: 7242
Updated by: alan@akbkhome.com
Reported By: luke dot richards at emailcenteruk dot com
Summary: Mail_mimeDecode: Notice: Uninitialized string offset
-Status: Analyzed
+Status: Closed
Type: Bug
Package: Mail_mimeDecode
Operating System: Linux
Package Version: 1.3.1
PHP Version: 4.3.11
-Assigned To:
+Assigned To: alan_k
Roadmap Versions:
New Comment:

-Status: Analyzed
+Status: Closed
-Assigned To:
+Assigned To: alan_k
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pear.php.net/get/




Previous Comments:
------------------------------------------------------------------------

[2008-01-22 04:17:31] yunosh

This is a very straightforward, one-line fix, please apply. The notice
can be triggered by any empty content type parameter, e.g.:

Content-Type: multipart/signed; boundary="=_2tcul05gfp2c";
protocol="application/pkcs7-signature"; micalg="sha1"; name=""

------------------------------------------------------------------------

[2007-08-03 02:47:44] schmidt

Any chance a fix for this will make it in the next release? I'd rather
not have to use @ to mute errors from decode().

------------------------------------------------------------------------

[2007-07-11 09:33:24] schmidt

The suggested fix is wrong. $param_value is a string, and
$param_value[0] is used to get the first character. The problem occurs,
when $param_value is "", e.g. when a header like the following is
encountered:

Content-Type: text/plain; charset=

Headers like these occur regularly in bounce messages generated by some
mailservers.

A better fix is something like this:

- if ($param_value[0] == '"') {
+ if (substr($param_value, 0, 1) == '"') {

------------------------------------------------------------------------

[2006-04-27 10:35:25] cipri

Moved to Mail_MimeDecode subpackage.

------------------------------------------------------------------------

[2006-03-29 05:02:00] luke dot richards at emailcenteruk dot com

Changed summary to be more descriptive...

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=7242

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 2, '10 at 12:53p
activeSep 2, '10 at 12:53p
posts1
users1
websitepear.php.net

1 user in discussion

Alan: 1 post

People

Translate

site design / logo © 2022 Grokbase