1 | <?php |
||
10 | final class DetectOpCodeCache |
||
11 | { |
||
12 | final public static function checkAll() |
||
24 | |||
25 | /** |
||
26 | * check if we have Xcache |
||
27 | * |
||
28 | * @link http://xcache.lighttpd.net |
||
29 | * @return bool |
||
30 | */ |
||
31 | public static function hasXcache() |
||
35 | |||
36 | /** |
||
37 | * check if we have Wincache |
||
38 | * |
||
39 | * @link http://www.iis.net/expand/WinCacheForPHP |
||
40 | * @return bool |
||
41 | */ |
||
42 | public static function hasWincache() |
||
46 | |||
47 | /** |
||
48 | * check if we have Alternative PHP Cache |
||
49 | * |
||
50 | * @link http://pecl.php.net/package/apc |
||
51 | * @return bool |
||
52 | */ |
||
53 | public static function hasApc() |
||
57 | |||
58 | /** |
||
59 | * check if we have eAccelerator |
||
60 | * |
||
61 | * @link http://eaccelerator.net |
||
62 | * @return bool |
||
63 | */ |
||
64 | public static function hasEaccelerator() |
||
69 | |||
70 | /** |
||
71 | * check if we have ionCube Loader |
||
72 | * |
||
73 | * @link http://www.php-accelerator.co.uk |
||
74 | * @return bool |
||
75 | */ |
||
76 | public static function hasIoncube() |
||
80 | |||
81 | /** |
||
82 | * check if we have Zend Optimizer+ |
||
83 | * |
||
84 | * @link http://www.zend.com/products/server |
||
85 | * @return bool |
||
86 | */ |
||
87 | public static function hasZend() |
||
91 | |||
92 | /** |
||
93 | * check if we have nuSphere phpExpress |
||
94 | * |
||
95 | * @link http://www.nusphere.com/products/phpexpress.htm |
||
96 | * @return bool |
||
97 | */ |
||
98 | public static function hasNusphere() |
||
102 | |||
103 | /** |
||
104 | * check if we have php 5.5.5+ opcode cache |
||
105 | * |
||
106 | * @link http://php.net/manual/de/book.opcache.php |
||
107 | * @return bool |
||
108 | */ |
||
109 | public static function hasOpCode() |
||
113 | } |
||
114 |