blob: 1c03355c26e80840a4229028aca69802ac8e8b26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
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
|