Bug #17503 Updated: imap_mail_compose disposition.type problem

From: Date: Wed, 29 May 2002 08:40:51 +0000
Subject: Bug #17503 Updated: imap_mail_compose disposition.type problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8832@lists.php.net to get a copy of this message
ID: 17503 Updated by: derick@php.net Reported By: mccohy@kyberdigi.cz -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] mccohy@kyberdigi.cz 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

« previous php.bugs (#8832) next »