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:
parent
2b29c9cb60
commit
01b4e5f15b
@ -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) {
|
||||||
}
|
}
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user