# HG changeset patch # User Dan # Date 1241492820 14400 # Node ID d52dfa1f08da39aa7ffe5e7a39885e952f874af5 # Parent 745cccc6b97d8463715da929c7f4c2d8556f7fa2 Fixed some error display cosmetics in Request_HTTP diff -r 745cccc6b97d -r d52dfa1f08da 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;