--TEST-- bug#53872 (internal corruption of phar) --SKIPIF-- --INI-- phar.readonly=0 --FILE-- buildFromDirectory(__DIR__ . "/bug53872/"); $p->setStub(''); $p->compressFiles(Phar::GZ); print(file_get_contents('phar://bug53872-phar.phar/first.txt')); print(file_get_contents('phar://bug53872-phar.phar/second.txt')); print(file_get_contents('phar://bug53872-phar.phar/third.txt')); ?> --CLEAN-- --EXPECT-- content of first.txt content of third.txt