]> granicus.if.org Git - php/commitdiff
- Fixed bug #55313 (Number of retries not set when params specified)
authorFelipe Pena <felipe@php.net>
Sat, 6 Aug 2011 00:59:21 +0000 (00:59 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 6 Aug 2011 00:59:21 +0000 (00:59 +0000)
  patch by: kevin at kevinlocke dot name

ext/imap/php_imap.c

index 9c0ed32dd91e315e34bde210086c36112cc8fe52..a0b52ed243db8c8060811162457665d3ac81f981 100644 (file)
@@ -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 {