From 2a4b5c0e971f9ed3056b2d81b639dad0fd069b62 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 15 Oct 2008 15:45:01 +0000 Subject: phplint cleanup --- it_url.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/it_url.class b/it_url.class index dc2a3e4..0ee799a 100644 --- a/it_url.class +++ b/it_url.class @@ -206,7 +206,7 @@ function is_reachable($timeout = 5) { $result = false; - if ($fp = @fsockopen($this->realhostname, $this->port, $errno, $errstr, $timeout)) + if ($fp = @fsockopen($this->realhostname, $this->port, $dummy_errno, $dummy_errstr, $timeout)) { fputs($fp, "GET /$this->path HTTP/1.0\r\nHost: $this->realhostname\r\nUser-Agent: ITools\r\n\r\n"); $line = fgets($fp, 128); @@ -248,7 +248,7 @@ function get($p=null, $timeout=5) if ($url->protocol == 'http') { - if ($fp = @fsockopen($url->realhostname, $url->port, $errno, $errstr, $p['timeout'])) + if ($fp = @fsockopen($url->realhostname, $url->port, $dummy_errno, $dummy_errstr, $p['timeout'])) { # urlencode data pairs if is array if (is_array($p['data'])) -- cgit v1.2.3