Skip to content

2 different files required w/ same relative path resolve to one file #227

@rob-odil

Description

@rob-odil

We have multiple ZF2 applications running on the same server. The ./public/index.php does a require of "config/application.config.php".

Zend\Mvc\Application::init(require 'config/application.config.php')->run();

Once that file is cached for one of the applications, the other applications all hit the same file in the opcode cache. Changing the require a full path using getcwd fixes this issue.

Zend\Mvc\Application::init(require getcwd() . '/config/application.config.php')->run();

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