php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28014 attached files are missing bytes
Submitted: 2004-04-15 18:24 UTC Modified: 2004-04-15 19:50 UTC
From: josh at jamisonadvertising dot com Assigned:
Status: Not a bug Package: *Mail Related
PHP Version: 4.3.4 OS: Red Hat
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: josh at jamisonadvertising dot com
New email:
PHP Version: OS:

 

 [2004-04-15 18:24 UTC] josh at jamisonadvertising dot com
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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-15 18:31 UTC] amt@php.net
I'm sorry you're having problems, but it's really a lot 
of work to download software and create test cases for 
bug reports. (It's not like we write those classes and 
we get lots of bugs each day.)

Why don't you report the problem to the authors of the 
mail class and see if they can reproduce it? If they 
can, they will be able to generate a PHP bug report that 
makes it easier for us to fix the problem.
 [2004-04-15 18:36 UTC] josh at jamisonadvertising dot com
OK - I'll try that.  Thank you for a much more helpful 
suggestion than the last one.
 [2004-04-15 19:50 UTC] josh at jamisonadvertising dot com
OK - well I found the problem.

magic_quotes_runtime

I'll post something in the mail() function.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 16:01:29 2024 UTC