Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.8.8

Bug #12921 _file2str not binary safe
Submitted: 2008-01-17 08:48 UTC Modified: 2008-03-22 16:14 UTC
From: superstition Assigned: walter
Status: Closed Package: Mail_Mime (version 1.5.2)
PHP Version: 5.1.2 OS: SUSE Linux 10.1 (X86-64)
Roadmaps: 1.5.3    
Subscription  


 [2008-01-17 08:48 UTC] superstition (Karsten Vieth)
Description: ------------ When i attach a pdf (created with fpdf) and add it as attachment the file is not fully read. I've changed the fread function to file_get_contents and everything works fine.

Comments

 [2008-03-22 16:14 UTC] walter (Walter Hop)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Now reading files through file_get_contents(), which is the recommended way to read files as a whole. file_get_contents requires PHP 4.3.0. Mail_mime however depends on PEAR 1.6 which already requires PHP 4.3.0, so this is not a problem.