From 01b4e5f15b5ddade445b1a95be72c197186d2c52 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 15 Dec 2021 15:55:44 +0100 Subject: [PATCH] Download native PHP 8.1 phar build --- src/danog/MadelineProto/Magic.php | 2 +- tools/phar.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/danog/MadelineProto/Magic.php b/src/danog/MadelineProto/Magic.php index 5ed118f61..f17fdbfc6 100644 --- a/src/danog/MadelineProto/Magic.php +++ b/src/danog/MadelineProto/Magic.php @@ -333,7 +333,7 @@ class Magic self::$revision = 'Revision: '.self::$version; self::$version_latest = null; try { - $php = (string) \min(80, (int) (PHP_MAJOR_VERSION.PHP_MINOR_VERSION)); + $php = (string) \min(81, (int) (PHP_MAJOR_VERSION.PHP_MINOR_VERSION)); self::$version_latest = @\file_get_contents("https://phar.madelineproto.xyz/release$php"); } catch (\Throwable $e) { } diff --git a/tools/phar.php b/tools/phar.php index 194f2eeb7..11bc8b21f 100644 --- a/tools/phar.php +++ b/tools/phar.php @@ -63,7 +63,7 @@ class Installer } \define('MADELINE_REAL_ROOT', \dirname($backtrace[0]["file"])); } - $this->version = (string) \min(80, (int) (PHP_MAJOR_VERSION.PHP_MINOR_VERSION)); + $this->version = (string) \min(81, (int) (PHP_MAJOR_VERSION.PHP_MINOR_VERSION)); \define('MADELINE_PHAR_GLOB', \getcwd().DIRECTORY_SEPARATOR."madeline*-{$this->version}.phar"); \define('MADELINE_RELEASE_URL', \sprintf(self::RELEASE_TEMPLATE, $this->version)); }