Home » Mail » Mail_mimeDecode » Bug #7242
Mail_mimeDecode: Notice: Uninitialized string offset
Details
| Submitted | 2006-03-29 10:00 UTC |
|---|---|
| From | luke dot richards at emailcenteruk dot com |
| Assigned | alan_k |
| Status | Closed |
| Package | Mail_mimeDecode |
| PHP Version | 4.3.11 |
| OS | Linux |
| Roadmaps | 1.6.0 |
Comments
[2006-03-29 10:00 UTC] luke dot richards at emailcenteruk dot com
Description:
------------
468c468
< if (is_array($param_value) AND $param_value[0] == '"') {
---
> if ($param_value[0] == '"') {
Test script:
---------------
<?php
require_once("Mail/mimeDecode.php");
// this is an email we received
$string = file_get_contents("http://www.emailcenteruk.com/pear_report/example_email.eml");
$params = array();
$params['include_bodies'] = true;
$params['decode_bodies'] = true;
$params['decode_headers'] = true;
$parser = new Mail_mimeDecode($string);
$structure = $parser->decode($params);
print_r($structure);
?>
Expected result:
----------------
The structure of the email is printed without any errors/notices.
Actual result:
--------------
The structure of the email is printed with the notice:
Notice: Uninitialized string offset: 0 in /usr/share/php/Mail/mimeDecode.php on line 468
[2006-03-29 10:02 UTC] luke dot richards at emailcenteruk dot com
Changed summary to be more descriptive...