Fixed some error display cosmetics in Request_HTTP
authorDan
Mon, 04 May 2009 23:07:00 -0400
changeset 952 d52dfa1f08da
parent 951 745cccc6b97d
child 953 323c4cd1aa37
Fixed some error display cosmetics in Request_HTTP
includes/http.php
--- 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;