Skip to content

Commit 19764da

Browse files
committed
Merge pull request #252 from khoaofgod/final
remove open base_dir
2 parents 391c4d1 + 0b8f7d1 commit 19764da

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/phpFastCache/phpFastCache.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,14 @@
1313
*/
1414

1515
use phpFastCache\CacheManager;
16-
use phpFastCache\Util\OpenBaseDir;
1716
define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
18-
require_once __DIR__."/Util/OpenBaseDir.php";
1917
/**
2018
* Register Autoload
2119
*/
2220
spl_autoload_register(function ($entity) {
2321
// Explode is faster than substr & strstr also more control
2422
$module = explode('\\',$entity,2);
25-
if ($module[0] !== 'phpFastCache'
26-
|| !OpenBaseDir::checkBaseDir(__DIR__)) {
23+
if ($module[0] !== 'phpFastCache') {
2724
/**
2825
* Not a part of phpFastCache file
2926
* then we return here.

0 commit comments

Comments
 (0)