mirror of
https://github.com/danog/MadelineProtoPhar.git
synced 2024-11-30 08:39:02 +01:00
Release HEAD - Try fixing build again
This commit is contained in:
parent
09a2833242
commit
19fa502774
8
phar.php
8
phar.php
@ -40,9 +40,12 @@ class Installer
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
if (PHP_MAJOR_VERSION < 8 || PHP_MINOR_VERSION < 1) {
|
||||
if ((PHP_MAJOR_VERSION === 7 && PHP_MINOR_VERSION < 1) || PHP_MAJOR_VERSION < 7) {
|
||||
throw new \Exception('MadelineProto requires at least PHP 8.1.');
|
||||
}
|
||||
if ((PHP_MAJOR_VERSION === 8 && PHP_MINOR_VERSION < 1) || PHP_MAJOR_VERSION === 7) {
|
||||
trigger_error('MadelineProto requires at least PHP 8.1.');
|
||||
}
|
||||
if (PHP_INT_SIZE < 8) {
|
||||
throw new \Exception('A 64-bit build of PHP is required to run MadelineProto, PHP 8.1 is required.');
|
||||
}
|
||||
@ -171,6 +174,9 @@ class Installer
|
||||
private static function load($release)
|
||||
{
|
||||
if ($release === null) {
|
||||
if ((PHP_MAJOR_VERSION === 8 && PHP_MINOR_VERSION < 1) || PHP_MAJOR_VERSION === 7) {
|
||||
throw new \Exception('MadelineProto requires at least PHP 8.1.');
|
||||
}
|
||||
throw new \Exception('Could not download MadelineProto, please check your internet connection and PHP configuration!');
|
||||
}
|
||||
$phar = "madeline-$release.phar";
|
||||
|
@ -1 +1 @@
|
||||
67a78c9d32ed68e5735ff7cb6c74a6a980a1fb0e-71
|
||||
37fdcd57a3e8676f58e327f28acb39b4a127229b-71
|
@ -1 +1 @@
|
||||
67a78c9d32ed68e5735ff7cb6c74a6a980a1fb0e-72
|
||||
37fdcd57a3e8676f58e327f28acb39b4a127229b-72
|
@ -1 +1 @@
|
||||
67a78c9d32ed68e5735ff7cb6c74a6a980a1fb0e-73
|
||||
37fdcd57a3e8676f58e327f28acb39b4a127229b-73
|
@ -1 +1 @@
|
||||
67a78c9d32ed68e5735ff7cb6c74a6a980a1fb0e-74
|
||||
37fdcd57a3e8676f58e327f28acb39b4a127229b-74
|
@ -1 +1 @@
|
||||
67a78c9d32ed68e5735ff7cb6c74a6a980a1fb0e-80
|
||||
37fdcd57a3e8676f58e327f28acb39b4a127229b-80
|
Loading…
Reference in New Issue
Block a user