Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
Prepping for 2.2.0RC1.
  • Loading branch information
weierophinney committed May 1, 2013
169 parents 4b83eb4 + 1483e66 + b428d8b + dc72787 + bca6f24 + 1cda83c + 835b631 + d3605c7 + 7a32de0 + 7a6cebf + 662a059 + 5e1c4bb + de6ba8b + 19c92ef + f5abdbd + a4b3fcc + e0d3e79 + eb7f4fc + f5f296f + c1bc89d + 2cfde08 + 5ed923d + 7bfa121 + 0b38f0b + 1914ec7 + 47650bd + b7f9c80 + d490dab + 0b235a6 + ea8420a + 806e429 + 14b8e16 + 2c9f881 + 1591173 + 3288109 + 6149722 + fb18be8 + 2f56d24 + 256686b + 3cc679d + da18011 + 93ac388 + 57ef4a3 + 2f2851a + 2ec1dbc + 9a48955 + b6b50b9 + a16c105 + a634561 + 779d017 + e998d74 + e0c0b66 + 677bd85 + bd0abb6 + 7e23a9b + 76e9a65 + 9666e65 + 0fb7a6e + b476244 + a566cb1 + 84a7972 + f6501d5 + 74b0454 + ea99bf1 + e2703e7 + 90db7ae + b2f5380 + d6ee2dd + 2dae9df + 15a2e1f + 00d7ef1 + 88e29ab + 04f5596 + d4b9187 + 83cb40e + e80536c + 8344c40 + 314ef07 + f8fe680 + 7d99158 + 5a453b7 + 16b512c + e13bb78 + f8c8e84 + 0e833f2 + 463bd0b + e23f919 + c0f3fe1 + 9af4d23 + fbdafd9 + 46c341e + 1fcdf03 + 9e5c38e + 41f8caa + f236745 + ab9047d + c7b4a3f + 5cbe79f + dc8268a + cbafbe9 + d2c6567 + 0cc6fdf + 09daef8 + df6fc46 + ba228cf + 67d18da + 48a0084 + c78da38 + 76f6205 + 02baf86 + 907dad9 + 56854a7 + 51b08b5 + 86f37cb + 5ecd1ed + a4cca36 + cfc46bf + a576736 + 0650b43 + 6fc76b3 + 2dcfeeb + 80461fa + db66f77 + 66790e4 + ceefa98 + fc0f947 + 6a060b9 + de10d09 + 9ac9f8e + dc02847 + ee05131 + fb9ea71 + cb2e3cf + 08f2b17 + efc498e + 71822ef + 818d7d9 + 5c72f46 + 2b5dcae + 32dbda5 + d550f51 + 3aa0ee9 + 4ea71ee + 730f592 + c6516da + 76770c7 + 167fdbf + 1510cfa + e52ef9a + c1754e3 + 30e7e8b + c208a5e + c258e8b + 95bc2ba + 62058ff + 5129baa + e212b9b + 760714d + 844e2ae + e84c12e + 94de9c5 + 69ad6c7 + d68e5a1 + 9fededc + 1fe76d7 + 9cfe1eb + de84a61 + ee1b45a + 8dd678f commit fd733d8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Header/Sender.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static function fromString($headerLine)
}

// Check for address, and set if found
if (preg_match('^(?P<name>.*?)<(?P<email>[^>]+)>$', $value, $matches)) {
if (preg_match('/^(?P<name>.*?)<(?P<email>[^>]+)>$/', $value, $matches)) {
$name = $matches['name'];
if (empty($name)) {
$name = null;
Expand Down
14 changes: 7 additions & 7 deletions src/Protocol/AbstractProtocol.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ abstract class AbstractProtocol

/**
* Maximum of the transaction log
* @var integer
* @var int
*/
protected $maximumLog = 64;

Expand All @@ -45,7 +45,7 @@ abstract class AbstractProtocol

/**
* Port number of connection
* @var integer
* @var int
*/
protected $port;

Expand Down Expand Up @@ -89,7 +89,7 @@ abstract class AbstractProtocol
* Constructor.
*
* @param string $host OPTIONAL Hostname of remote connection (default: 127.0.0.1)
* @param integer $port OPTIONAL Port number (default: null)
* @param int $port OPTIONAL Port number (default: null)
* @throws Exception\RuntimeException
*/
public function __construct($host = '127.0.0.1', $port = null)
Expand Down Expand Up @@ -118,7 +118,7 @@ public function __destruct()
/**
* Set the maximum log size
*
* @param integer $maximumLog Maximum log size
* @param int $maximumLog Maximum log size
*/
public function setMaximumLog($maximumLog)
{
Expand Down Expand Up @@ -250,7 +250,7 @@ protected function _disconnect()
*
* @param string $request
* @throws Exception\RuntimeException
* @return integer|bool Number of bytes written to remote host
* @return int|bool Number of bytes written to remote host
*/
protected function _send($request)
{
Expand All @@ -276,7 +276,7 @@ protected function _send($request)
/**
* Get a line from the stream.
*
* @param integer $timeout Per-request timeout value if applicable
* @param int $timeout Per-request timeout value if applicable
* @throws Exception\RuntimeException
* @return string
*/
Expand Down Expand Up @@ -319,7 +319,7 @@ protected function _receive($timeout = null)
* Throws a Zend_Mail_Protocol_Exception if an unexpected code is returned.
*
* @param string|array $code One or more codes that indicate a successful response
* @param integer $timeout Per-request timeout value if applicable
* @param int $timeout Per-request timeout value if applicable
* @throws Exception\RuntimeException
* @return string Last line of response string
*/
Expand Down
1 change: 1 addition & 0 deletions src/Protocol/Pop3.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ public function login($user, $password, $tryApop = true)
if ($tryApop && $this->timestamp) {
try {
$this->request("APOP $user " . md5($this->timestamp . $password));
return;
} catch (Exception\ExceptionInterface $e) {
// ignore
}
Expand Down
4 changes: 2 additions & 2 deletions src/Protocol/Smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Smtp extends AbstractProtocol
* are present.
*
* @param string|array $host
* @param null|integer $port
* @param null|int $port
* @param null|array $config
* @throws Exception\InvalidArgumentException
*/
Expand Down Expand Up @@ -196,7 +196,7 @@ public function helo($host = '127.0.0.1')
/**
* Returns the perceived session status
*
* @return boolean
* @return bool
*/
public function hasSession()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/AbstractStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function count()
* ArrayAccess::offsetExists()
*
* @param int $id
* @return boolean
* @return bool
*/
public function offsetExists($id)
{
Expand Down Expand Up @@ -248,7 +248,7 @@ public function offsetSet($id, $value)
* ArrayAccess::offsetUnset()
*
* @param int $id
* @return boolean success
* @return bool success
*/
public function offsetUnset($id)
{
Expand Down

0 comments on commit fd733d8

Please sign in to comment.