You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've fixed this issue with the above reference commit.
Possible function calls will be:
// Change $options (integer and constants are possible)$mailbox->setConnectionArgs(2);
$mailbox->setConnectionArgs(OP_READONLY);
// Change $options and $retriesNum$mailbox->setConnectionArgs(2, 3);
$mailbox->setConnectionArgs(OP_READONLY, 3);
// Change $options, $retriesNum and $params$mailbox->setConnectionArgs(0, 3, ['DISABLE_AUTHENTICATOR' => 'GSSAPI']);
$mailbox->setConnectionArgs(OP_READONLY, 3, ['DISABLE_AUTHENTICATOR' => 'GSSAPI']);
// Change only $retriesNum (set before required parameters to their defaults)$mailbox->setConnectionArgs(0, 3);
// Change only $params (set before required parameters to their defaults)$mailbox->setConnectionArgs(0, 0, ['DISABLE_AUTHENTICATOR' => 'GSSAPI']);
- Issue #313: Fixed skipping of args, when they are identical to their defaults
- Issue #314: Added support for parsing drafts
- Issue #277: Added PHPUnit tests to test functionality of decoding MIME strings
- Issue #253: Added charset property to IncomingMailAttachment
Describe the bug
Exception if setting only $retriesNum and leave $options = 0.
public function setConnectionArgs($options = 0, $retriesNum = 0, $params = null)
$supported_options = array(OP_READONLY, OP_ANONYMOUS, OP_HALFOPEN, CL_EXPUNGE, OP_DEBUG, OP_SHORTCACHE, OP_SILENT, OP_PROTOTYPE, OP_SECURE);
if(!in_array($options, $supported_options)) {
throw new InvalidParameterException('');
}
To Reproduce
$mailbox->setConnectionArgs(0, 3, []);
Expected behavior
Skip setting $options if 0
The text was updated successfully, but these errors were encountered: