Lines Matching refs:tar
2 Phar: tar-based phar, valid 1
12 $fname = __DIR__ . '/tar_003.phar.tar';
15 $tar = new tarmaker($fname, 'none');
16 $tar->init();
17 $tar->addFile('.phar/stub.php', "<?php // tar-based phar archive stub file\n__HALT_COMPILER();");
18 $tar->addFile('tar_003.phpt', $g = fopen(__FILE__, 'r'));
19 $tar->addFile('internal/file/here', "hi there!\n");
20 $tar->mkDir('internal/dir');
21 $tar->mkDir('dir');
22 $tar->close();
29 $tar = opendir($alias . '/');
34 while (false !== ($v = readdir($tar))) {
38 closedir($tar);
40 /* ensure none of the dir tar files were freed */
42 $tar = opendir($alias . '/');
43 while (false !== ($v = readdir($tar))) {
47 closedir($tar);
52 @unlink(__DIR__ . '/tar_003.phar.tar');