Skip to content

Commit

Permalink
Reduce duplicate debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Aug 7, 2015
1 parent 41d7273 commit 8a71910
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions class.smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -1042,10 +1042,9 @@ protected function get_lines()
}
while (is_resource($this->smtp_conn) && !feof($this->smtp_conn)) {
$str = @fgets($this->smtp_conn, 515);
$this->edebug("SMTP -> get_lines(): \$data was \"$data\"", self::DEBUG_LOWLEVEL);
$this->edebug("SMTP -> get_lines(): \$str is \"$str\"", self::DEBUG_LOWLEVEL);
$data .= $str;
$this->edebug("SMTP -> get_lines(): \$data is \"$data\"", self::DEBUG_LOWLEVEL);
$this->edebug("SMTP -> get_lines(): \$str is \"$str\"", self::DEBUG_LOWLEVEL);
$data .= $str;
// If 4th character is a space, we are done reading, break the loop, micro-optimisation over strlen
if ((isset($str[3]) and $str[3] == ' ')) {
break;
Expand Down

0 comments on commit 8a71910

Please sign in to comment.