summaryrefslogtreecommitdiffstats
path: root/preload-redis.inc
diff options
context:
space:
mode:
Diffstat (limited to 'preload-redis.inc')
-rw-r--r--preload-redis.inc6
1 files changed, 1 insertions, 5 deletions
diff --git a/preload-redis.inc b/preload-redis.inc
index 199b0fd..cc8f9dd 100644
--- a/preload-redis.inc
+++ b/preload-redis.inc
@@ -47,11 +47,7 @@ class Redis {
self::$ffi = \FFI::scope("_REMI_REDIS_");
} catch (\FFI\Exception $e) {
// Try direct load
- if (PHP_SAPI === 'cli' || (int)ini_get("ffi.enable")) {
- self::$ffi = \FFI::load(__DIR__ . '/preload-redis.h');
- } else {
- throw $e;
- }
+ self::$ffi = \FFI::load(__DIR__ . '/preload-redis.h');
}
if (!self::$ffi) {
throw new \RuntimeException("FFI parse fails");