Skip to content

Relative path returned by Directory::getAbsolutePath #381

@bukowskiadam

Description

@bukowskiadam

Testing #373 I've found issue introduced by commit 23eee89
Method \phpFastCache\Util\Directory::getAbsolutePath returns relative path on linux system - e.g. srv/http/test, instead of /srv/http/test, which causes that my cache is stored in directory /srv/http/test/srv/http/test/cache/cli/Files/...
Both branches are affected V6 and final. Are you developing on Windows? Probably on windows absolute path does not begin with DIRECTORY_SEPARATOR and such issue should not occur. I don't have any windows instance to test it out.

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