Update phar.php

This commit is contained in:
Daniil Gentili 2022-11-07 17:11:30 +01:00 committed by GitHub
parent 18ef701f02
commit 94dcdea999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,10 +41,13 @@ 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, PHP 8.1+ is recommended.');
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+ recommended.');
throw new \Exception('A 64-bit build of PHP is required to run MadelineProto, PHP 8.1 is required.');
}
$backtrace = \debug_backtrace(0);
if (\count($backtrace) === 1) {