26 parent::__construct();
35 $this -> bOpcacheGetConfigurationAva = function_exists(
'opcache_get_configuration');
36 $this -> bOpcacheGetStatusAva = function_exists(
'opcache_get_status');
38 $s = ini_get(
'disable_functions');
40 if(strpos(
$s,
'opcache_get_status') ===
false) {
41 $this -> bOpcacheGetStatusDisabled =
false;
43 $this -> bOpcacheGetStatusDisabled =
true;
46 if(strpos(
$s,
'opcache_get_configuration') ===
false) {
47 $this -> bOpcacheGetConfigurationDisabled =
false;
49 $this -> bOpcacheGetConfigurationDisabled =
true;
78 function setData($sKey, $mixedData, $iTTL =
false)
106 return $this -> bOpcacheGetConfigurationAva;
115 if($this -> bOpcacheGetConfigurationAva) {
116 $r = @opcache_get_configuration();
117 return $r[
'directives'][
'opcache.enable'];