ID: 17503 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: IMAP related Operating System: SuSE Linux 7.2 PHP Version: 4.2.1 New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-05-29 04:34:32] [EMAIL PROTECTED] Accoring to http://www.php.net/manual/en/function.imap-mail-compose.php: If I want to add a "Content-disposition" line to an attachment, I should do something like this: $part['disposition.type'] = 'attachment'; $part['disposition'] = array ('filename'=>'file.txt'); But this does not work. So I looked in the source, file ext/imap/php_imap.c, line 2998: if (zend_hash_find(Z_ARRVAL_PP(data), "Z_TYPE(disposition)", sizeof("Z_TYPE(disposition)"), (void **) &pvalue)== SUCCESS) { ... and tried a work-around: $part['Z_TYPE(disposition)'] = 'attachment'; $part['disposition'] = array ('filename'=>'file.txt'); ... which works fine. Cound someone please repair the source or the Manual page? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17503&edit=1
