PoC, only for documentation purpose Copyright (c) 2019 Remi Collet License: CC-BY-SA http://creativecommons.org/licenses/by-sa/4.0/ # preload.php to use with opcache.preload directive will take care of all *.h and *.inc files in the same directory # preload-redis.h # preload-redis.inc Minimal Redis client using libhiredis.so.0 # redis.php Test script using above stuff # preload-zstd.h # preload-zstd.inc Minimal Zstd tool using libzstd.so.1 # zstd.php Test script using above stuff # preload-foo.inc Minimal Foo class # foo Test script using above stuff Needed configuration: opcache.enable=1 opcache.enable_cli=1 opcache.preload=/path/to/preload.php opcache.preload_user=nonroot ffi.enable=1 ffi.preload=/path/to/preload-*.h