Skip to content

PHP 8.1 and ZipArchive::addFile() method does not support vfsStream ? #291

@lhervieux

Description

@lhervieux

I used to test classes with ZipArchive methods with vfsStream, and everything work great.

I upgraded php version in my project 7.4 to 8.1, and now I have an error :

ZipArchive::addFile(): No such file or directory

To be sure, before to use addFile(), I dump different methods to check if the file still exists (is_file($temporaryFilePath), file_get_contents($temporaryFilePath), file_exists($temporaryFilePath)...) and everything is ok.

I didnt see anything in php.net about changes related to ZipArchive passing 7.4 to 8.1

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