Add support for empty directories and mode setting in PharData's tar support
commit284d98459c582af4f0de4ecbc2633aa894c859ba
authorFred Emmott <fe@fb.com>
Mon, 19 Jun 2017 22:04:13 +0000 (19 15:04 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Mon, 19 Jun 2017 22:13:07 +0000 (19 15:13 -0700)
treef8e1fe8d04107d33efdb98432b4d8eba521d7269
parent2cbd46aad7d31c2a7fa9f4a027c0fff08651d008
Add support for empty directories and mode setting in PharData's tar support

Summary:
Yak shaving for #7876: at FB, we tar up the frameworks and cache them.
Using the current git + tar to create these tars, then the old phardata code
to extract them results in a directory that git doesn't think is a repository,
so you can't run the phpunit_php7 tests twice.

Reviewed By: mofarrell

Differential Revision: D5232651

fbshipit-source-id: ee921394f3118d4ba05cc8681a7462de43ceb6f7
hphp/system/php/archive_handler/ArchiveHandler.ns.php
hphp/system/php/archive_handler/PharArchiveHandler.ns.php
hphp/system/php/archive_handler/TarArchiveHandler.ns.php
hphp/system/php/archive_handler/ZipArchiveHandler.ns.php
hphp/system/php/phar/Phar.php
hphp/test/slow/archive_handler/tar_archive.php.expect [moved from hphp/test/slow/archive_handler/tar_archive.php.expectf with 67% similarity]
hphp/test/slow/ext_phar/empty_and_modes.tar.bz2 [new file with mode: 0644]
hphp/test/slow/ext_phar/tar_with_empty_and_modes.php [new file with mode: 0644]
hphp/test/slow/ext_phar/tar_with_empty_and_modes.php.expect [new file with mode: 0644]