#35904 [Opn->Bgs]: iconv_mime_decode_headers need trim($headers) before using it
| From: | tony2001@php.net | Date: | Thu, 05 Jan 2006 12:05:16 +0000 |
| Subject: | #35904 [Opn->Bgs]: iconv_mime_decode_headers need trim($headers) before using it | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-91541@lists.php.net to get a copy of this message | ||
ID: 35904
Updated by: tony2001@php.net
Reported By: eugen at id dot com dot ua
-Status: Open
+Status: Bogus
Bug Type: ICONV related
Operating System: Linux kernel 2.6.9
PHP Version: 5.1.2RC1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2006-01-05 13:03:19] eugen at id dot com dot ua
Description:
------------
If headers contain leading newline, iconv_mime_decode_headers return
empty array instead of parsed headers array
Reproduce code:
---------------
$headers = '
Subject: Test
From: myself@dot.com
';
print_r(iconv_mime_decode_headers($headers));
/* Note, that $headers string start with newline*/
Expected result:
----------------
Array
(
[Subject] => Test
[From] => myself@dot.com
)
Actual result:
--------------
Array
(
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35904&edit=1