8000 [Filesystem] dumpFile not compatible with streams · Issue #10018 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Filesystem] dumpFile not compatible with streams #10018
Closed
@pablodip

Description

@pablodip

This is because it creates a normal file with tempnam and then renames it, but renaming between different streams is not possible:

https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Filesystem/Filesystem.php#L457

I discovered this when trying to use a virtual file system (https://github.com/mikey179/vfsStream) for tests, trying to pass it as the kernel root dir, but not being able because the kernel uses the ConfigCache, and this last the filesystem dumpFile:

https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Config/ConfigCache.php#L98

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0