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  


 [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.