ID: 43903 Updated by: [EMAIL PROTECTED] Reported By: reports at vishnivetsky dot ru -Status: Open +Status: Bogus Bug Type: IMAP related Operating System: Linux plesk.rtcomm-sibir.ru 2.6. PHP Version: 4.4.8 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Please IMAP c-client bugs to its authors. Thank you. Previous Comments: ------------------------------------------------------------------------ [2008-01-21 09:21:02] reports at vishnivetsky dot ru Description: ------------ The problem is whet I try to fetch message with following structure: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------636F494B2165" ------------636F494B2165 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Here comes plain text with cyrillic characters. sd fsd f sdf s df sdf sf s ылвоарлорпл ------------636F494B2165 Content-Type: application/octet-stream; name="vssver.scc" Content-transfer-encoding: base64 Content-Disposition: attachment; filename="vssver.scc" NBIBADCSAGDjY9URiUMAkCdir0j+oz57LigBAAAAAACQ0QEAUdL+w7xrBRUCAAAA ------------636F494B2165-- So when I try to call imap_fetchbody() with partid = 1 (where plain text is) I returns an empty string some times. I have tested this operation on messages, that differs only by length of TEXT/PLAIN part and presence of cyrrilic characters. So when length is more then 50-100 bytes and we have cyrillic characters in the end of this part the imap_fetchbody() returns en empty string. Reproduce code: --------------- imap_fetchbody( $mbox, ($HTTP_GET_VARS['msgid']+0), ($HTTP_GET_VARS['partid']), FT_PEEK || FT_UID ) Expected result: ---------------- Here comes plain text with cyrillic characters. sd fsd f sdf s df sdf sf s ылвоарлорпл Actual result: -------------- <an empty string> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43903&edit=1
