Lines Matching refs:tar
2 Phar: tar-based phar, valid 1
13 $fname = dirname(__FILE__) . '/tar_003.phar.tar';
16 $tar = new tarmaker($fname, 'none');
17 $tar->init();
18 $tar->addFile('.phar/stub.php', "<?php // tar-based phar archive stub file\n__HALT_COMPILER();");
19 $tar->addFile('tar_003.phpt', $g = fopen(__FILE__, 'r'));
20 $tar->addFile('internal/file/here', "hi there!\n");
21 $tar->mkDir('internal/dir');
22 $tar->mkDir('dir');
23 $tar->close();
30 $tar = opendir($alias . '/');
35 while (false !== ($v = readdir($tar))) {
39 closedir($tar);
41 /* ensure none of the dir tar files were freed */
43 $tar = opendir($alias . '/');
44 while (false !== ($v = readdir($tar))) {
48 closedir($tar);
54 @unlink(dirname(__FILE__) . '/tar_003.phar.tar');