1
0
mirror of https://github.com/danog/PrimeModule.git synced 2024-11-30 04:39:09 +01:00
This commit is contained in:
Daniil Gentili 2023-05-27 16:41:40 +02:00
parent 1fcfddc253
commit e7ebfc1ea6
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -252,7 +252,7 @@ class PrimeModule
if (!extension_loaded('primemodule')) {
if (class_exists(FFI::class)) {
try {
self::$ffi = FFI::load('/usr/include/primemodule-ffi.h');
self::$ffi ??= FFI::load('/usr/include/primemodule-ffi.h');
$result = self::$ffi->factorizeFFI((string) $what);
if ($result > 0) {
return $result;