1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 02:34:39 +01:00

Download native PHP 8.1 phar build

This commit is contained in:
Daniil Gentili 2021-12-15 15:55:44 +01:00
parent 2b29c9cb60
commit 01b4e5f15b
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 2 additions and 2 deletions

View File

@ -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) {
}

View File

@ -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));
}