novaramedia / novaramedia-com

Detected use of @ to suppress errors PHP-W1078
Bug risk
Critical
2 years ago2 years old
Errors should not be suppressed
 9                $params['http']['header'] = $optional_headers;
10        }
11        $ctx = stream_context_create($params);
12        $fp = @fopen($url, 'rb', false, $ctx);13        if (!$fp) {
14                throw new Exception("Problem with $url, $php_errormsg");
15        }
Errors should not be suppressed
13        if (!$fp) {
14                throw new Exception("Problem with $url, $php_errormsg");
15        }
16        $response = @stream_get_contents($fp);17        if ($response === false) {
18                throw new Exception("Problem reading data from $url, $php_errormsg");
19        }