mirror of
https://github.com/php/web-pecl.git
synced 2026-03-23 23:02:08 +01:00
Silence errors from file_get_contents here
This commit is contained in:
@@ -255,7 +255,7 @@ class PackageDll
|
||||
$ret = [];
|
||||
|
||||
$ctx = stream_context_create(["http" => ["header" => "User-Agent: WebPecl/1.0"]]);
|
||||
$r = file_get_contents("https://$host$uri/", false, $ctx);
|
||||
$r = @file_get_contents("https://$host$uri/", false, $ctx);
|
||||
if (false === $r) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user