From 114af985e602f77a462b4a6971d7111c4cad12d1 Mon Sep 17 00:00:00 2001 From: Conrad Sollitt Date: Sun, 26 Dec 2021 23:07:50 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Install=20Script=20Update=20for?= =?UTF-8?q?=20PHP=208.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install.php b/scripts/install.php index e11e87d..bee8f95 100644 --- a/scripts/install.php +++ b/scripts/install.php @@ -197,7 +197,7 @@ function getLatestRelease() { echo str_repeat('-', 80) . LINE_BREAK; echo 'Getting latest release of FastSitePHP: ' . $url . LINE_BREAK; $context = stream_context_create($http_options); - $response = file_get_contents($url, null, $context); + $response = file_get_contents($url, false, $context); $json = json_decode($response); if ($json && isset($json->tag_name)) { echo 'Version: ' . $json->tag_name . LINE_BREAK; @@ -234,7 +234,7 @@ function downloadZip($url, $path) { ), ); $context = stream_context_create($http_options); - $response = file_get_contents($url, null, $context); + $response = file_get_contents($url, false, $context); // Look for a 200 Response Code, example: // 'HTTP/1.0 200 OK'