diff --git a/src/BufferFactory.php b/src/BufferFactory.php index 891167b..762471f 100644 --- a/src/BufferFactory.php +++ b/src/BufferFactory.php @@ -7,7 +7,7 @@ class BufferFactory { public function isAvailable() : bool { - return class_exists(FFI::class); + return extension_loaded('ffi'); } public function Buffer(int $size, int $dtype) : Buffer