mirror of
https://github.com/danog/MadelineProtoPhar.git
synced 2024-11-30 08:39:02 +01:00
Release HEAD - CI build
This commit is contained in:
parent
c9247e6be9
commit
6acd54e02c
8
phar.php
8
phar.php
@ -3,11 +3,11 @@
|
||||
namespace danog\MadelineProto;
|
||||
|
||||
if (\defined('MADELINE_PHP')) {
|
||||
throw new \Exception('Please do not include madeline.php twice!');
|
||||
throw new \Exception('Please do not include madeline.php twice, use require_once \'madeline.php\';!');
|
||||
}
|
||||
|
||||
if (!\defined('MADELINE_ALLOW_COMPOSER') && \class_exists(\Composer\Autoload\ClassLoader::class)) {
|
||||
throw new \Exception('Composer autoloader detected: madeline.php is incompatible with Composer, please require MadelineProto using composer.');
|
||||
throw new \Exception('Composer autoloader detected: madeline.php is incompatible with Composer, please require \'danog/madelineproto:^7\' using composer.');
|
||||
}
|
||||
|
||||
\define('MADELINE_PHP', __FILE__);
|
||||
@ -41,10 +41,10 @@ class Installer
|
||||
public function __construct()
|
||||
{
|
||||
if ((PHP_MAJOR_VERSION === 7 && PHP_MINOR_VERSION < 1) || PHP_MAJOR_VERSION < 7) {
|
||||
throw new \Exception('MadelineProto requires at least PHP 7.1 to run');
|
||||
throw new \Exception('MadelineProto requires at least PHP 7.1 to run, PHP 8.1+ is recommended.');
|
||||
}
|
||||
if (PHP_INT_SIZE < 8) {
|
||||
throw new \Exception('A 64-bit build of PHP is required to run MadelineProto, PHP 8.0+ recommended.');
|
||||
throw new \Exception('A 64-bit build of PHP is required to run MadelineProto, PHP 8.1+ recommended.');
|
||||
}
|
||||
$backtrace = \debug_backtrace(0);
|
||||
if (\count($backtrace) === 1) {
|
||||
|
@ -1 +1 @@
|
||||
fcded0a0eb4189883b99a0dedf34112e49e539e3-71
|
||||
eb48fe6da562b03f22e5277e82ecb0971321c821-71
|
@ -1 +1 @@
|
||||
fcded0a0eb4189883b99a0dedf34112e49e539e3-72
|
||||
eb48fe6da562b03f22e5277e82ecb0971321c821-72
|
@ -1 +1 @@
|
||||
fcded0a0eb4189883b99a0dedf34112e49e539e3-73
|
||||
eb48fe6da562b03f22e5277e82ecb0971321c821-73
|
@ -1 +1 @@
|
||||
fcded0a0eb4189883b99a0dedf34112e49e539e3-74
|
||||
eb48fe6da562b03f22e5277e82ecb0971321c821-74
|
@ -1 +1 @@
|
||||
fcded0a0eb4189883b99a0dedf34112e49e539e3-80
|
||||
eb48fe6da562b03f22e5277e82ecb0971321c821-80
|
Loading…
Reference in New Issue
Block a user