From 65e381ba1dce9ab00a2396775c2f3b69729ab02b Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 6 Aug 2011 00:59:21 +0000 Subject: [PATCH] - Fixed bug #55313 (Number of retries not set when params specified) patch by: kevin at kevinlocke dot name --- ext/imap/php_imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.40.0