1 | <?php |
||
17 | class PhpProxy implements ProxyInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var AbstractAdapter |
||
21 | */ |
||
22 | protected $adapter; |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | 15 | public function getFunctions() |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 15 | public function setAdapter(AbstractAdapter $adapter) |
|
49 | |||
50 | /** |
||
51 | * Find out whether an extension is loaded |
||
52 | * |
||
53 | * @param string $name The extension name. This parameter is case-insensitive |
||
54 | * @return boolean Returns TRUE if the extension identified by name is loaded, FALSE otherwise |
||
55 | */ |
||
56 | 15 | public function extension_loaded($name) |
|
66 | |||
67 | /** |
||
68 | * Gets the value of a configuration option |
||
69 | * |
||
70 | * @param string $varname The configuration option name |
||
71 | * @return string Returns the value of the configuration option as a string on success, or an empty string |
||
72 | * for null values. Returns FALSE if the configuration option doesn't exist. |
||
73 | */ |
||
74 | 1 | public function ini_get($varname) |
|
84 | |||
85 | /** |
||
86 | * Gets the value of a configuration option |
||
87 | * |
||
88 | * @param string $varname Not all the available options can be changed using ini_set(). There is a list of all |
||
89 | * available options in the appendix. |
||
90 | * @param string $newvalue The new value for the option |
||
91 | * @return string Returns the old value on success, FALSE on failure |
||
92 | */ |
||
93 | 1 | public function ini_set($varname, $newvalue) |
|
104 | |||
105 | /** |
||
106 | * Returns a string containing the version of the currently running PHP parser or extension. |
||
107 | * |
||
108 | * @param string $extension An optional extension name |
||
109 | * @return string |
||
110 | */ |
||
111 | 1 | public function phpversion($extension = null) |
|
121 | |||
122 | /** |
||
123 | * Get contents of the realpath cache |
||
124 | * |
||
125 | * @since 5.3.2 |
||
126 | * @return array Returns an array of realpath cache entries. The keys are original path entries, |
||
127 | * and the values are arrays of data items, containing the resolved path, expiration date, and |
||
128 | * other options kept in the cache. |
||
129 | */ |
||
130 | 1 | public function stat_realpath_get() |
|
137 | |||
138 | /** |
||
139 | * Returns how much memory realpath cache is using. |
||
140 | * |
||
141 | * @since 5.3.2 |
||
142 | * @return int Memory usage in bytes |
||
143 | */ |
||
144 | 1 | public function stat_realpath_size() |
|
151 | |||
152 | /** |
||
153 | * Resets the contents of the file status cache, including the realpath cache |
||
154 | * |
||
155 | * @return void |
||
156 | */ |
||
157 | 1 | public function stat_cache_clear() |
|
164 | |||
165 | /** |
||
166 | * Evaluate a string as PHP code |
||
167 | * |
||
168 | * @param string $expression Evaluates the given code as PHP |
||
169 | * @return mixed |
||
170 | */ |
||
171 | 1 | public function _eval($expression) |
|
178 | } |
||
179 |