Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Filesystem] dumpFile not compatible with streams #10018

Copy link
Copy link
Closed
@pablodip

Description

@pablodip
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.