From: john at sysop dot com Operating system: win32 PHP version: 4.3.3 PHP Bug Type: Mail related Bug description: upgrade to 4.3.3 breaks email attachments
Description: ------------ Running a script which attaches a Word .rtf file to an email via MIME encoding. script works fine under 4.3.2, but causes the attachment to be corrupt under 4.3.3. Not sure why, do not fully understand the code we copied to do this. Yeah, it's ugly code that I've no time to clean up. Sorry. It does work without flaw on PHP 4.3.2 Win32, though. Only change to the server was removal of 4.3.2, insertion of 4.3.3 and a restart of IIS (5). No changes to the script were made nor to any other software on the system. Reproduce code: --------------- http://www.powerpointerspage.com/php_433_mime_bug.txt Expected result: ---------------- code SHOULD produce an email addressed to a customer which contains a text message and a MIME attachment of an RTF file. The RTF should be immediately openable by the end user upon receipt of the email. Actual result: -------------- Outlook reports "The file appears to be corrupt" when doing test-sends to ourselves. So, something during the attachment process is not working the same way as it used to - base64 encoding, chunk_split(), something along those lines. Looking at the way in generates the mime boundary, I can tell that MD5 is working right, at least. I do get a different, "valid" md5 string on each test-send. The problem totally disappears upon reversion to PHP 4.3.2. Normal email attachment resumes at that point. -- Edit bug report at http://bugs.php.net/?id=25565&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25565&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25565&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25565&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25565&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25565&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25565&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25565&r=support Expected behavior: http://bugs.php.net/fix.php?id=25565&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25565&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25565&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25565&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25565&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25565&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25565&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25565&r=gnused