Report new bug | New search | Development Roadmap Status: Open | Feedback | All

Bug #1747 mistake in parameter description
Submitted: 2004-06-30 10:17 UTC
From: geels at datainlife dot ru Assigned:
Status: Bogus Package: Documentation
PHP Version: Irrelevant OS: irrelevant
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 46 + 42 = ?

 
 [2004-06-30 10:17 UTC] geels at datainlife dot ru
Description: ------------ PEAR package Mail_mime :: addAttachment(), :: addHTMLImage() there is a description of fourth parameter: string $name - The suggested file name for the data. Only used, if $file contains data. 'Only used, if $file contains data.' is incorrect. parameter $name used always.

Comments

 [2004-07-15 08:49 UTC] mj
I think that the documentation is correct here. From the code of Mail_mime: $filename = ($isfilename === true) ? basename($file) : basename($name); So $name *is* actually only used if $filename does not contain the image data but the filename.