Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions datadog-setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,7 @@ function download($url, $destination, $retry = false)
// file_get_contents
if (is_truthy(ini_get('allow_url_fopen')) && extension_loaded('openssl')) {
ini_set("memory_limit", "2G"); // increase memory limit otherwise we may run OOM here.
$http_response_header = []; // Initialize to avoid deprecation on PHP 8.5
$data = @file_get_contents($url);
// PHP doesn't like too long location headers, and on PHP 7.3 and older they weren't read at all.
// But this only really matters for CircleCI artifacts, so not too bad.
Expand Down
Loading