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