mirror of
https://github.com/danog/MadelineProtoPhar.git
synced 2024-11-30 08:09:00 +01:00
Update phar.php
This commit is contained in:
parent
518b2a8861
commit
d0373d23c4
4
phar.php
4
phar.php
@ -41,10 +41,10 @@ class Installer
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
if (PHP_MAJOR_VERSION < 8 || PHP_MINOR_VERSION < 1) {
|
if (PHP_MAJOR_VERSION < 8 || PHP_MINOR_VERSION < 1) {
|
||||||
throw new \Exception('MadelineProto requires at least PHP 8.1.');
|
die('MadelineProto requires at least PHP 8.1.'.PHP_EOL);
|
||||||
}
|
}
|
||||||
if (PHP_INT_SIZE < 8) {
|
if (PHP_INT_SIZE < 8) {
|
||||||
throw new \Exception('A 64-bit build of PHP is required to run MadelineProto, PHP 8.1 is required.');
|
die('A 64-bit build of PHP is required to run MadelineProto, PHP 8.1 is required.'.PHP_EOL);
|
||||||
}
|
}
|
||||||
$backtrace = \debug_backtrace(0);
|
$backtrace = \debug_backtrace(0);
|
||||||
if (\count($backtrace) === 1) {
|
if (\count($backtrace) === 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user