When I try to decompress tar.gz or zip archive on Linux with:
$phar->extractTo( $root .'/', null, true );
my files corrupted by extra empty lines.
When I use this code on Windows host all works fine and files after decompression works.
How to avoid it and save original file structure?
question from:https://stackoverflow.com/questions/65919665/decompress-deflate-archive-on-php-corrupts-files-on-linux