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?
2.1m questions
2.1m answers
60 comments
57.0k users