1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 10:38:59 +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::$revision = 'Revision: '.self::$version;
self::$version_latest = null; self::$version_latest = null;
try { 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"); self::$version_latest = @\file_get_contents("https://phar.madelineproto.xyz/release$php");
} catch (\Throwable $e) { } catch (\Throwable $e) {
} }

View File

@ -63,7 +63,7 @@ class Installer
} }
\define('MADELINE_REAL_ROOT', \dirname($backtrace[0]["file"])); \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_PHAR_GLOB', \getcwd().DIRECTORY_SEPARATOR."madeline*-{$this->version}.phar");
\define('MADELINE_RELEASE_URL', \sprintf(self::RELEASE_TEMPLATE, $this->version)); \define('MADELINE_RELEASE_URL', \sprintf(self::RELEASE_TEMPLATE, $this->version));
} }