]> granicus.if.org Git - php/commitdiff
bug #46731 modification to previous fix
authorZoe Slattery <zoe@php.net>
Fri, 5 Dec 2008 11:57:24 +0000 (11:57 +0000)
committerZoe Slattery <zoe@php.net>
Fri, 5 Dec 2008 11:57:24 +0000 (11:57 +0000)
ext/imap/php_imap.c

index b43a8bb2e6edf03421b61608e7acbb485807ae3e..56a041b2ea7df256796a91ffec2a41043a37c102 100644 (file)
@@ -3159,7 +3159,7 @@ PHP_FUNCTION(imap_fetch_overview)
                return;
        }
 
-       if (flags && !(flags & FT_UID)) {
+       if (flags && ((flags & ~FT_UID) !=0)) { 
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid value for the options parameter");
                RETURN_FALSE;
        }