1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 08:28:26 +02:00

MFH: fix.

This commit is contained in:
Chuck Hagenbuch
2004-08-12 18:02:14 +00:00
parent 0e39d9932a
commit d6316ebef3
+5 -1
View File
@@ -1776,7 +1776,11 @@ PHP_FUNCTION(imap_fetchbody)
convert_to_long_ex(flags);
}
PHP_IMAP_CHECK_MSGNO(Z_LVAL_PP(msgno));
if (myargc < 4 || !Z_LVAL_PP(flags) & FT_UID) {
/* If we're fetching via UID, checking the range of msgno is
DUMB. */
PHP_IMAP_CHECK_MSGNO(Z_LVAL_PP(msgno));
}
body = mail_fetchbody_full(imap_le_struct->imap_stream, Z_LVAL_PP(msgno), Z_STRVAL_PP(sec), &len, myargc==4 ? Z_LVAL_PP(flags) : NIL);