Bug #17503: imap_mail_compose disposition.type problem
| From: | mccohy at kyberdigi dot cz | Date: | Wed, 29 May 2002 08:34:32 +0000 |
| Subject: | Bug #17503: imap_mail_compose disposition.type problem | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-8831@lists.php.net to get a copy of this message | ||
From: mccohy@kyberdigi.cz
Operating system: SuSE Linux 7.2
PHP version: 4.2.1
PHP Bug Type: IMAP related
Bug description: imap_mail_compose disposition.type problem
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 bug report at http://bugs.php.net/?id=17503&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17503&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17503&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17503&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17503&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17503&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17503&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17503&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17503&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17503&r=globals