mirror of
https://github.com/danog/PrimeModule.git
synced 2024-11-30 04:39:09 +01:00
Fix
This commit is contained in:
parent
1fcfddc253
commit
e7ebfc1ea6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user