diff options
author | Urban Müller | 2008-10-15 15:45:01 +0000 |
---|---|---|
committer | Urban Müller | 2008-10-15 15:45:01 +0000 |
commit | 2a4b5c0e971f9ed3056b2d81b639dad0fd069b62 (patch) | |
tree | 017c458e053d89b805c681f551f1e657242485b1 /it_url.class | |
parent | 8dcb4d91d50acbd2a7f330bd82f171bec58732c3 (diff) | |
download | itools-2a4b5c0e971f9ed3056b2d81b639dad0fd069b62.tar.gz itools-2a4b5c0e971f9ed3056b2d81b639dad0fd069b62.tar.bz2 itools-2a4b5c0e971f9ed3056b2d81b639dad0fd069b62.zip |
phplint cleanup
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 4 |
1 files 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'])) |