ID: 35904 Updated by: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] '; print_r(iconv_mime_decode_headers($headers)); /* Note, that $headers string start with newline*/ Expected result: ---------------- Array ( [Subject] => Test [From] => [EMAIL PROTECTED] ) Actual result: -------------- Array ( ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35904&edit=1
