Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/phpFastCache/phpFastCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,14 @@
*/

use phpFastCache\CacheManager;
use phpFastCache\Util\OpenBaseDir;
define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
require_once __DIR__."/Util/OpenBaseDir.php";
/**
* Register Autoload
*/
spl_autoload_register(function ($entity) {
// Explode is faster than substr & strstr also more control
$module = explode('\\',$entity,2);
if ($module[0] !== 'phpFastCache'
|| !OpenBaseDir::checkBaseDir(__DIR__)) {
if ($module[0] !== 'phpFastCache') {
/**
* Not a part of phpFastCache file
* then we return here.
Expand Down