Skip to content

Commit

Permalink
Enable GNU factor factorization module
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Apr 12, 2023
1 parent f441386 commit 8ae9696
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"ext-json": "*",
"ext-xml": "*",
"ext-dom": "*",
"ext-gmp": "*",
"ext-filter": "*",
"ext-hash": "*",
"ext-zlib": "*",
Expand Down
1 change: 1 addition & 0 deletions src/MTProtoSession/AuthKeyHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public function createAuthKey(bool $temp): PermAuthKey|TempAuthKey|null
$pq = Tools::unpackSignedLong(\strrev($pq_bytes));
foreach ([
'native_single_cpp',
'factor_single',
'python_single_alt',
'python_single',
'native_single',
Expand Down
2 changes: 1 addition & 1 deletion src/Magic.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public static function start(bool $light): void
return;
}
}
foreach (['xml', 'dom', 'fileinfo', 'json', 'mbstring', 'filter', 'hash', 'zlib'] as $extension) {
foreach (['gmp', 'xml', 'dom', 'fileinfo', 'json', 'mbstring', 'filter', 'hash', 'zlib'] as $extension) {
if (!\extension_loaded($extension)) {
throw Exception::extension($extension);
}
Expand Down

0 comments on commit 8ae9696

Please sign in to comment.