zendframework/zf2 — pull request #2934 by odnanref (2012-11-11 00:40:58+00:00)
Title: Minor Issue: Imap ssl case sensitive fix

Hello,

Based on this test I concluded I should not have been writing ssl in lower case since the code does not allow this, BUT in code I used for Zend\Mail\SmtpOptions I did specify ssl in lower case.

$ php -r '("ssl" === "SSL" ? print "OK\n" : print "NEIN\n");'

For a question of consistency I uppered case the $ssl in case it's not false.

Example code:
$protocol = new \Zend\Mail\Protocol\Imap();
print $protocol->connect("imap.gmail.com", 993, "ssl");

print $protocol->login($params['user'], $params['password']);
//
var_dump($protocol->listMailbox());