12345678910111213141516171819202122232425 |
- --TEST--
- bug#53872 (internal corruption of phar)
- --EXTENSIONS--
- phar
- zlib
- --INI--
- phar.readonly=0
- --FILE--
- <?php
- $p=new Phar('bug53872-phar.phar');
- $p->buildFromDirectory(__DIR__ . "/bug53872/");
- $p->setStub('<?php __HALT_COMPILER();?\>');
- $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--
- <?php
- unlink("bug53872-phar.phar");
- ?>
- --EXPECT--
- content of first.txt
- content of third.txt
|