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?
1.4m articles
1.4m replys
5 comments
57.0k users