We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84b0c8c commit e077d5bCopy full SHA for e077d5b
src/phpFastCache/phpFastCache.php
@@ -22,20 +22,14 @@
22
spl_autoload_register(function ($entity) {
23
// Explode is faster than substr & strstr also more control
24
$module = explode('\\',$entity,2);
25
- if ($module[0] !== 'phpFastCache') {
+ if ($module[0] !== 'phpFastCache'
26
+ || !OpenBaseDir::checkBaseDir(__DIR__)) {
27
/**
28
* Not a part of phpFastCache file
29
* then we return here.
30
*/
31
return;
32
}
- if(!OpenBaseDir::checkBaseDir(__DIR__)) {
33
- /*
34
- * in case system have open base_dir, it will check ONE time only for the __DIR__
35
- * If open_base_dir is NULL, it skip checking
36
- */
37
- return;
38
- }
39
40
$entity = str_replace('\\', '/', $module[1]);
41
$path = __DIR__ . '/' . $entity . '.' . PHP_EXT;
0 commit comments