diff options
author | Remi Collet <remi@remirepo.net> | 2019-10-23 09:03:08 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2019-10-23 09:03:08 +0200 |
commit | 175e158863e621bc269e64cd739b4d8462354eab (patch) | |
tree | a74ac0e73ad3190f5dbdb9a99142c0ee3e5b2d35 /preload-zstd.inc | |
parent | 8216eb1b5a4a80e804e56185d5c433443943a929 (diff) |
FFI::load() doesn't work in conjunction with "opcache.preload_user". Use "ffi.preload" instead.
Diffstat (limited to 'preload-zstd.inc')
-rw-r--r-- | preload-zstd.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/preload-zstd.inc b/preload-zstd.inc index de8abd0..f56c833 100644 --- a/preload-zstd.inc +++ b/preload-zstd.inc @@ -19,10 +19,12 @@ class Zstd { // Try if preloaded try { self::$ffi = \FFI::scope("_REMI_ZSTD_"); + echo "Using FFI::scope OK\n"; } catch (\FFI\Exception $e) { // Try direct load if (PHP_SAPI === 'cli' || (int)ini_get("ffi.enable")) { self::$ffi = \FFI::load(__DIR__ . '/preload-zstd.h'); + echo "Using FFI::load OK\n"; } else { throw $e; } |