Bug #73946 [Com]: tar-based phar error on buildFromDirectory function

From: Date: Mon, 28 Sep 2020 03:46:03 +0000
Subject: Bug #73946 [Com]: tar-based phar error on buildFromDirectory function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229241@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73946&edit=1 ID: 73946 Comment by: sophiabyner93x at gmail dot com Reported by: escalle dot emilien at gmail dot com Summary: tar-based phar error on buildFromDirectory function Status: Open Type: Bug Package: PHAR related Operating System: debian 8.3 PHP Version: 5.6.29 Block user comment: N Private report: N New Comment: Excellent Post. In fact, I'm making it a sticky so other can find it later. Thanks! Check https://usedcarsforsale.online/ to buy a suitable car Previous Comments: ------------------------------------------------------------------------ [2017-01-16 11:05:37] escalle dot emilien at gmail dot com Description: ------------ Hi, 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. Test script: --------------- $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); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73946&edit=1

« previous php.bugs (#229241) next »