Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MimeMailParser::getAttachmentStream() should not use $part as reference #33

Open
GoogleCodeExporter opened this issue May 22, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Parse any mail with attachment
2. Use getAttachments() method
3. Try to read headers of retrieved MimeMailParser_attachment object

What is the expected output? What do you see instead?
You should get some headers while you always get none.

What version of the product are you using? On what operating system?
r26


The problem is because $part being passed by reference and gets overwritten 
here: 
http://code.google.com/p/php-mime-mail-parser/source/browse/trunk/MimeMailParser
.class.php#406

In fact $part should never be passed by reference - even in few other methods 
of MimeMailParser class. I can't see any reason for that.

Original issue reported on code.google.com by [email protected] on 26 Feb 2013 at 6:58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant