|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesimap_open-set_retries_with_6_args (last revision 2011-07-29 03:00 UTC by kevin at kevinlocke dot name)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-08-06 00:59 UTC] felipe@php.net
[2011-08-06 00:59 UTC] felipe@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: felipe
[2011-08-06 00:59 UTC] felipe@php.net
[2012-04-18 09:49 UTC] laruence@php.net
[2012-07-24 23:40 UTC] rasmus@php.net
[2013-11-17 09:37 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 05:00:01 2025 UTC |
Description: ------------ It appears that when the params argument was added in commit r293126, the check for argc == 5 was not updated to argc >= 5 at php_imap.c:1230 causing the number of tries/retries to be ignored when 6 arguments are given. Test script: --------------- // Next line causes default (2) retries if connection fails imap_open('{localhost:143/service=imap}', 'user', 'pass', 0, 1, array('DISABLE_AUTHENTICATOR' => 'GSSAPI')); // Next line causes 0 retries if connection fails imap_open('{localhost:143/service=imap}', 'user', 'pass', 0, 1); Expected result: ---------------- Both connection attempts cause 0 retries on failure. Actual result: -------------- The first line causes 2 retries (3 total attempts) the second causes 0 retries (1 total attempts).