go to bug id or search bugs for
I got an error when using \PharData::buildFromDirectory on a huge directory (608MB) :
PharException - "tar-based phar "..." cannot be created, header for file "..." could not be written"
I've checked the free disk space and RAM, everything seems to be ok.
I've delete the file which is specified by the error, but the errors occurs on another file.
The error is not verbose to understand what happens.
$oTar = new \PharData('test_dir/test.tar.gz');
$oTar->buildFromDirectory('/test_dir_huge/'); // /test_dir_huge/ is a direcotry of 608MB
$oTarGz = $oTar->compress(\Phar::GZ);
Add a Patch
Add a Pull Request