PHPMailer updated to 2.0.4 excluding phpdocs directory
[mailer.git] / inc / phpmailer / class.smtp.php
index 50779bf96740f2bc9457bab8af49a88341e05d3b..be084a116e117b695b278ab460af49f3969763f6 100644 (file)
@@ -2,7 +2,7 @@
 /*~ class.smtp.php
 .---------------------------------------------------------------------------.
 |  Software: PHPMailer - PHP email class                                    |
-|   Version: 2.0.3                                                          |
+|   Version: 2.0.4                                                          |
 |   Contact: via sourceforge.net support pages (also www.codeworxtech.com)  |
 |      Info: http://phpmailer.sourceforge.net                               |
 |   Support: http://sourceforge.net/projects/phpmailer/                     |
@@ -73,11 +73,11 @@ class SMTP
    * @return void
    */
   function SMTP() {
-    $this->smtp_conn = '0';
+    $this->smtp_conn = 0;
     $this->error = null;
     $this->helo_rply = null;
 
-    $this->do_debug = '0';
+    $this->do_debug = 0;
   }
 
   /*************************************************************
@@ -252,7 +252,7 @@ class SMTP
     if(!empty($this->smtp_conn)) {
       # close the connection and cleanup
       fclose($this->smtp_conn);
-      $this->smtp_conn = '0';
+      $this->smtp_conn = 0;
     }
   }
 
@@ -1038,7 +1038,7 @@ class SMTP
    */
   function get_lines() {
     $data = "";
-    while($str == @fgets($this->smtp_conn,515)) {
+    while($str = @fgets($this->smtp_conn,515)) {
       if($this->do_debug >= 4) {
         echo "SMTP -> get_lines(): \$data was \"$data\"" .
                  $this->CRLF;