cvs: php4 /ext/imap php_imap.c

From: Date: Tue, 22 Aug 2000 02:35:30 +0000
Subject: cvs: php4 /ext/imap php_imap.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1305@lists.php.net to get a copy of this message
chagenbu Mon Aug 21 19:35:30 2000 EDT Modified files: /php4/ext/imap php_imap.c Log: Fix a crash in imap_fetchheader(). FT_PREFETCHTEXT isn't the only flag that you can pass to mail_fetchheader_full(). Index: php4/ext/imap/php_imap.c diff -u php4/ext/imap/php_imap.c:1.42 php4/ext/imap/php_imap.c:1.43 --- php4/ext/imap/php_imap.c:1.42 Fri Aug 18 09:02:27 2000 +++ php4/ext/imap/php_imap.c Mon Aug 21 19:35:30 2000 @@ -25,7 +25,7 @@ | PHP 4.0 updates: Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_imap.c,v 1.42 2000/08/18 16:02:27 chagenbu Exp $ */ +/* $Id: php_imap.c,v 1.43 2000/08/22 02:35:30 chagenbu Exp $ */ #define IMAP41 @@ -2664,7 +2664,7 @@ 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); } } /* }}} */

« previous php.cvs (#1305) next »