php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #55313
Patch imap_open-set_retries_with_6_args revision 2011-07-29 03:00 UTC by kevin at kevinlocke dot name

Patch imap_open-set_retries_with_6_args for IMAP related Bug #55313

Patch version 2011-07-29 03:00 UTC

Return to Bug #55313 | Download this patch
Patch Revisions:

Developer: kevin@kevinlocke.name

--- 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 {
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 04:01:55 2014 UTC