Bug #55313 [NEW]: Number of retries not set when params specified

From: Date: Fri, 29 Jul 2011 02:58:47 +0000
Subject: Bug #55313 [NEW]: Number of retries not set when params specified
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-162254@lists.php.net to get a copy of this message
From:             
Operating system: 
PHP version:      trunk-SVN-2011-07-29 (SVN)
Package:          IMAP related
Bug Type:         Bug
Bug description:Number of retries not set when params specified

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).

-- 
Edit bug report at https://bugs.php.net/bug.php?id=55313&edit=1
-- 
Try a snapshot (PHP 5.4):            https://bugs.php.net/fix.php?id=55313&r=trysnapshot54
Try a snapshot (PHP 5.3):            https://bugs.php.net/fix.php?id=55313&r=trysnapshot53
Try a snapshot (trunk):              https://bugs.php.net/fix.php?id=55313&r=trysnapshottrunk
Fixed in SVN:                        https://bugs.php.net/fix.php?id=55313&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55313&r=needdocs
Fixed in release:                    https://bugs.php.net/fix.php?id=55313&r=alreadyfixed
Need backtrace:                      https://bugs.php.net/fix.php?id=55313&r=needtrace
Need Reproduce Script:               https://bugs.php.net/fix.php?id=55313&r=needscript
Try newer version:                   https://bugs.php.net/fix.php?id=55313&r=oldversion
Not developer issue:                 https://bugs.php.net/fix.php?id=55313&r=support
Expected behavior:                   https://bugs.php.net/fix.php?id=55313&r=notwrong
Not enough info:                     https://bugs.php.net/fix.php?id=55313&r=notenoughinfo
Submitted twice:                     https://bugs.php.net/fix.php?id=55313&r=submittedtwice
register_globals:                    https://bugs.php.net/fix.php?id=55313&r=globals
PHP 4 support discontinued:          https://bugs.php.net/fix.php?id=55313&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55313&r=dst
IIS Stability:                       https://bugs.php.net/fix.php?id=55313&r=isapi
Install GNU Sed:                     https://bugs.php.net/fix.php?id=55313&r=gnused
Floating point limitations:          https://bugs.php.net/fix.php?id=55313&r=float
No Zend Extensions:                  https://bugs.php.net/fix.php?id=55313&r=nozend
MySQL Configuration Error:           https://bugs.php.net/fix.php?id=55313&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#162254) next »