1
0
mirror of https://github.com/danog/PrimeModule.git synced 2024-11-26 20:34:37 +01:00
This commit is contained in:
Daniil Gentili 2023-12-29 16:35:40 +01:00
parent ca0fdfd09b
commit 0f2798dc77

View File

@ -253,7 +253,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;