includes/http.php
changeset 952 d52dfa1f08da
parent 894 83d180d87f3c
child 1034 15fa1b4e730a
--- a/includes/http.php	Mon May 04 23:06:33 2009 -0400
+++ b/includes/http.php	Mon May 04 23:07:00 2009 -0400
@@ -239,7 +239,7 @@
     }
     else
     {
-      throw new Exception(__CLASS__ . '::' . __METHOD__ . ': Invalid argument(s)');
+      throw new Exception(__METHOD__ . ': Invalid argument(s)');
     }
   }
   
@@ -264,7 +264,7 @@
     }
     else
     {
-      throw new Exception(__CLASS__ . '::' . __METHOD__ . ': Invalid argument(s)');
+      throw new Exception(__METHOD__ . ': Invalid argument(s)');
     }
   }
   
@@ -289,7 +289,7 @@
     }
     else
     {
-      throw new Exception(__CLASS__ . '::' . __METHOD__ . ': Invalid argument(s)');
+      throw new Exception(__METHOD__ . ': Invalid argument(s)');
     }
   }
   
@@ -314,7 +314,7 @@
     }
     else
     {
-      throw new Exception(__CLASS__ . '::' . __METHOD__ . ': Invalid argument(s)');
+      throw new Exception(__METHOD__ . ': Invalid argument(s)');
     }
   }
   
@@ -326,9 +326,9 @@
   function _sock_open(&$connection)
   {
     // Open connection
-    $connection = fsockopen($this->host, $this->port);
+    $connection = @fsockopen($this->host, $this->port);
     if ( !$connection )
-      throw new Exception(__CLASS__ . '::' . __METHOD__ . ': Could not make connection');
+      throw new Exception(__METHOD__ . ': Could not make connection');
     
     // 1 = socket open
     $this->state = 1;