Skip to content

[Insight] Absolute path constants __DIR__ and __FILE__ should not be used - in Bundle/CoreBundle/Cache/ApcCache.php, line 22 #28

@lenybernard

Description

@lenybernard

in Bundle/CoreBundle/Cache/ApcCache.php, line 22

__DIR__ and __FILE__ constants may conflict with the Symfony resource overriding system

     */
    public function __construct($cache, $debug)
    {
        $this->cache = new $cache();
        $this->debug = $debug;
        $this->uniqId = md5(__FILE__);
    }

    /**
     * Fetches an entry from the cache.
     *

Posted from SensioLabsInsight

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions