diff options
author | Chuck Hagenbuch <chagenbu@php.net> | 2000-08-22 02:35:30 +0000 |
---|---|---|
committer | Chuck Hagenbuch <chagenbu@php.net> | 2000-08-22 02:35:30 +0000 |
commit | 3a1b4fda7eec68eace9f77556b3e3a84e178644d (patch) | |
tree | fd6b71a90a85b4c3e9d61ab6572a1fb4d5065b4f /ext/imap/php_imap.c | |
parent | 10247c67fa6c5bf0905ddb43de62da22032c4566 (diff) | |
download | php-git-3a1b4fda7eec68eace9f77556b3e3a84e178644d.tar.gz |
Fix a crash in imap_fetchheader(). FT_PREFETCHTEXT isn't the only flag that
you can pass to mail_fetchheader_full().
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r-- | ext/imap/php_imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 941b2aa948..d1432e7fa8 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -2664,7 +2664,7 @@ PHP_FUNCTION(imap_fetchheader) RETVAL_STRINGL(tempstring,(hlen+blen+1),1); efree(tempstring); } else { - RETVAL_STRING(mail_fetchheader_full(imap_le_struct->imap_stream, Z_LVAL_PP(msgno), NIL, NIL, NIL), 1); + RETVAL_STRING(mail_fetchheader_full(imap_le_struct->imap_stream, Z_LVAL_PP(msgno), NIL, NIL, (myargc == 3 ? Z_LVAL_PP(flags) : NIL)), 1); } } /* }}} */ |