From: Pierre Joye Date: Sat, 25 Apr 2009 15:08:25 +0000 (+0000) Subject: - ws X-Git-Tag: php-5.4.0alpha1~191^2~3854 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c350613c833f5eba07fa099b295ce44e323ae54;p=php - ws --- diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index add1c179ef..8ebdd8b5d8 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -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; }