From: josh at jamisonadvertising dot com Operating system: Red Hat PHP version: 4.3.4 PHP Bug Type: *Mail Related Bug description: attached files are missing bytes
Description: ------------ I reported this bug before, only to have one of your developers dissmiss it as bogus and an issue for PHP support which is pretty damned insulting. I would appreciate it if someone could try the referenced class file and see if they aren't able to reproduce the error. Mail sent using mail() with attached files sends the mail, but the attached file arrives with bytes missing. I believe this to be a bug because the identical code (note the usage of the word IDENTITICAL) works on a box running 4.2.3 This particular installation of PHP was compiled with: './configure' '--with-apache=../apache_1.3.29' '--with- mysql=/usr/local/mysql' '--enable-memory-limit=yes' '-- enable-debug=no' '-with-mcrypt' '--enable-ftp' '-- enable-exif' '--enable-bcmath' '--with-xml' '--with- pspell' '--with-pgsql' '--with-mhash' '--with-ming' '-- with-curl' '--with-gd' '--enable-gd-native-ttf' '-- enable-gd-imgstrttf' '--with-jpeg-dir=/usr/local/lib' '--with-png' '--with-zlib' '--with-freetype-dir=/usr/ local/include/freetype2' '--with-ttf' '--with-pdflib' '--with-tiff-dir=/usr/local/lib' Reproduce code: --------------- This is the second of two mail class files that produces the error on 4.3.4 or greater: http://phpmailer.sourceforge.net/ Expected result: ---------------- On 4.2.3, mail will arrive with an intact attachment. On 4.3.4 or greater, the mail will arrive with an attachment with bytes missing. -- Edit bug report at http://bugs.php.net/?id=28014&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28014&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28014&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28014&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28014&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28014&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28014&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28014&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28014&r=support Expected behavior: http://bugs.php.net/fix.php?id=28014&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28014&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28014&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28014&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28014&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28014&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28014&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28014&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28014&r=float