From: Felipe Pena Date: Sat, 6 Aug 2011 00:59:21 +0000 (+0000) Subject: - Fixed bug #55313 (Number of retries not set when params specified) X-Git-Tag: php-5.5.0alpha1~1641 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65e381ba1dce9ab00a2396775c2f3b69729ab02b;p=php - Fixed bug #55313 (Number of retries not set when params specified) patch by: kevin at kevinlocke dot name --- diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 9c0ed32dd9..a0b52ed243 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -1227,7 +1227,7 @@ static void php_imap_do_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) IMAPG(imap_password) = estrndup(passwd, passwd_len); #ifdef SET_MAXLOGINTRIALS - if (argc == 5) { + if (argc >= 5) { if (retries < 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING ,"Retries must be greater or equal to 0"); } else {