This commit is contained in:
Pierre Joye 2009-04-25 15:08:25 +00:00
parent f012ff613e
commit 7c350613c8

View File

@ -2198,7 +2198,6 @@ PHP_FUNCTION(imap_fetchstructure)
RETURN_FALSE;
}
ZEND_FETCH_RESOURCE(imap_le_struct, pils *, &streamind, -1, "imap", le_imap);
if (msgno < 1) {
@ -2977,13 +2976,11 @@ PHP_FUNCTION(imap_fetchheader)
return;
}
if (flags && ((flags & ~(FT_UID|FT_INTERNAL|FT_PREFETCHTEXT)) != 0)) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid value for the options parameter");
RETURN_FALSE;
}
ZEND_FETCH_RESOURCE(imap_le_struct, pils *, &streamind, -1, "imap", le_imap);
if ((argc == 3) && (flags & FT_UID)) {
@ -3220,7 +3217,7 @@ PHP_FUNCTION(imap_fetch_overview)
return;
}
if (flags && ((flags & ~FT_UID) != 0)) {
if (flags && ((flags & ~FT_UID) != 0)) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid value for the options parameter");
RETURN_FALSE;
}