From 630783b273c3ed294a0166884c441ad4772f76dc Mon Sep 17 00:00:00 2001 From: Yuichi Ishikawa Date: Sun, 17 Mar 2024 21:40:54 +0900 Subject: [PATCH] no ffi --- src/BufferFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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